]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_ucf: fix test for ucf/ucfr availability and quote filenames
authorJeroen Schot <schot@a-eskwadraat.nl>
Tue, 23 Aug 2011 08:12:35 +0000 (10:12 +0200)
committerJoey Hess <joey@kitenet.net>
Tue, 23 Aug 2011 17:25:20 +0000 (13:25 -0400)
autoscripts/postinst-ucf
autoscripts/postrm-ucf

index 633d3ff3152b852ed6fd75c004f77ae9a4583786..05468310ba89a3f82c6aade43afdfde94a3431c9 100644 (file)
@@ -1,4 +1,4 @@
 if [ "$1" = "configure" ]; then
-       ucf #UCFSRC# #UCFDEST#
-       ucfr #PACKAGE# #UCFDEST#
+       ucf "#UCFSRC#" "#UCFDEST#"
+       ucfr #PACKAGE# "#UCFDEST#"
 fi
index 5b0ef8bd127bceefb8ed6a0608f9349440e09ef9..da3757269f77846268e8976fd7600fb9bedb5ba0 100644 (file)
@@ -1,12 +1,12 @@
 if [ "$1" = "purge" ]; then
        for ext in .ucf-new .ucf-old .ucf-dist ""; do
-               rm -f #UCFDEST#$ext
+               rm -f "#UCFDEST#$ext"
        done
        
-       if [ -x `which ucf 2>/dev/null` ]; then
-               ucf --purge #UCFDEST#
+       if [ -x "`which ucf 2>/dev/null`" ]; then
+               ucf --purge "#UCFDEST#"
        fi
-       if [ -x `which ucfr 2>/dev/null` ]; then
-               ucfr --purge #PACKAGE# #UCFDEST#
+       if [ -x "`which ucfr 2>/dev/null`" ]; then
+               ucfr --purge #PACKAGE# "#UCFDEST#"
        fi
 fi