[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#218543: space between ] and ;



There could be a space between ] and ; therefore patch should read

--- checks/shared-libs.orig	2003-11-01 02:12:35.000000000 +0100
+++ checks/shared-libs	2003-11-01 02:13:21.000000000 +0100
@@ -305,11 +305,11 @@

     # Decide if we do it safely
     # this one matches code from debhelper
-    s/^if\s+\[\s+"\$1"\s+=\s+"remove"\s+\];\s+then\s+ldconfig\b//gm;
+    s/^\s*if\s+\[\s+"\$1"\s+=\s+"remove"\s+\]\s*;\s+then\s+ldconfig\b//gm;
     # variations...
-    s/^if\s+\[\s+"remove"\s+=\s+"\$1"\s+\];\s+then\s+ldconfig\b//gm;
-    s/^\[\s+"\$1"\s+=\s+"remove"\s+\]\s+&&\s+ldconfig\b//gm;
-    s/^\[\s+"remove"\s+=\s+"\$1"\s+\]\s+&&\s+ldconfig\b//gm;
+    s/^\s*if\s+\[\s+"remove"\s+=\s+"\$1"\s+\]\s*;\s+then\s+ldconfig\b//gm;
+    s/^\s*\[\s+"\$1"\s+=\s+"remove"\s+\]\s+&&\s+ldconfig\b//gm;
+    s/^\s*\[\s+"remove"\s+=\s+"\$1"\s+\]\s+&&\s+ldconfig\b//gm;
     if (/^[^\#]*\bldconfig\b/m) {
         print "W: $pkg $type: postrm-unsafe-ldconfig\n";
     }

--
Aidas Kasparas
IT administrator
GM Consult Group, UAB



Reply to: