[Pkg-cups-devel] r108 - cupsys/branches/cups-1.2/debian

Kenshi Muto kmuto at costa.debian.org
Sun Jan 22 03:30:25 UTC 2006


Author: kmuto
Date: Sun Jan 22 03:30:24 2006
New Revision: 108

Modified:
   cupsys/branches/cups-1.2/debian/changelog
   cupsys/branches/cups-1.2/debian/cupsys.postinst
Log:
fix extract code of VAL

Modified: cupsys/branches/cups-1.2/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2/debian/changelog	(original)
+++ cupsys/branches/cups-1.2/debian/changelog	Sun Jan 22 03:30:24 2006
@@ -1,7 +1,8 @@
 cupsys (1.1.99.b1.r4892-1) UNRELEASED-experimental; urgency=low
 
   [ Kenshi Muto ]
-  *
+  * debian/postinst:
+    - Fix value extract code of $VAL.
 
   [ Martin Pitt ]
   * New SVN release taken from r4892.

Modified: cupsys/branches/cups-1.2/debian/cupsys.postinst
==============================================================================
--- cupsys/branches/cups-1.2/debian/cupsys.postinst	(original)
+++ cupsys/branches/cups-1.2/debian/cupsys.postinst	Sun Jan 22 03:30:24 2006
@@ -118,7 +118,7 @@
         VAL=$(echo -n "root:CUPS:$RET" | md5sum | cut -d' ' -f1)
 	if [ -f /etc/cups/passwd.md5 ]; then
           if [ "$(grep "^root:" /etc/cups/passwd.md5)" ]; then
-	    sed -e 's/^root:lpadmin:.*/root:lpadmin:$VAL/' /etc/cups/passwd.md5 > /etc/cups/passwd.md5.$$
+	    sed -e "s/^root:lpadmin:.*/root:lpadmin:$VAL/" /etc/cups/passwd.md5 > /etc/cups/passwd.md5.$$
 	    mv /etc/cups/passwd.md5.$$ /etc/cups/passwd.md5
           else
 	    echo "root:lpadmin:$VAL" >> /etc/cups/passwd.md5



More information about the Pkg-cups-devel mailing list