From 26e6ba54356a30f8856bbafd82550e681a623908 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 23 May 2024 13:49:16 +0100 Subject: [PATCH] Bug 26176: (follow-up) Use suggested patturn in update Signed-off-by: Katrin Fischer (cherry picked from commit c5d05e5ee0e9806a8715f52780c7d73cafcf3c7a) Signed-off-by: Fridolin Somers --- installer/data/mysql/atomicupdate/bug_26176.pl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_26176.pl b/installer/data/mysql/atomicupdate/bug_26176.pl index cc7fb4e5a7..305e07e200 100755 --- a/installer/data/mysql/atomicupdate/bug_26176.pl +++ b/installer/data/mysql/atomicupdate/bug_26176.pl @@ -13,21 +13,19 @@ return { UPDATE systempreferences SET variable = "StaffLoginRestrictLibraryByIP" WHERE variable = "AutoLocation" } - ); - - say_success( $out, "Renamed system preference 'AutoLocation' to 'StaffLoginRestrictLibraryByIP'" ); + ) == 1 + && say_success( $out, "Renamed system preference 'AutoLocation' to 'StaffLoginRestrictLibraryByIP'" ); $dbh->do( q{ UPDATE systempreferences SET variable = "StaffLoginRestrictLibraryByIP" WHERE variable = "StaffLoginLibraryBasedOnIP" } - ); - - say_success( + ) == 1 + && say_success( $out, "Renamed system preference 'StaffLoginLibraryBasedOnIP' to 'StaffLoginRestrictLibraryByIP'" - ); + ); }, }; -- 2.39.5