svn commit: r811558 - /ofbiz/trunk/debian/move-files.pl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r811558 - /ofbiz/trunk/debian/move-files.pl

doogie-3
Author: doogie
Date: Fri Sep  4 21:36:02 2009
New Revision: 811558

URL: http://svn.apache.org/viewvc?rev=811558&view=rev
Log:
Let ucf use debconf.

Modified:
    ofbiz/trunk/debian/move-files.pl

Modified: ofbiz/trunk/debian/move-files.pl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/debian/move-files.pl?rev=811558&r1=811557&r2=811558&view=diff
==============================================================================
--- ofbiz/trunk/debian/move-files.pl (original)
+++ ofbiz/trunk/debian/move-files.pl Fri Sep  4 21:36:02 2009
@@ -192,7 +192,7 @@
 trap 'rm -f "\$tmpconffile"' EXIT
 tmpconffile=`tempfile -m 644`
 munge_conffile "\$tmpconffile" "$file"
-ucf "\$tmpconffile" /etc/ofbiz/$file
+ucf --debconf-ok "\$tmpconffile" /etc/ofbiz/$file
 ucfr ofbiz /etc/ofbiz/$file
 rm -f "\$tmpconffile"
 trap '' EXIT
@@ -201,7 +201,7 @@
  my $postrm = <<_EOF_;
 for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do rm -f /etc/ofbiz/$file\$ext; done
 rm -f /etc/ofbiz/$file
-if which ucf >/dev/null; then ucf --purge /etc/ofbiz/$file; fi
+if which ucf >/dev/null; then ucf --debconf-ok --purge /etc/ofbiz/$file; fi
 if which ucfr >/dev/null; then ucfr --purge ofbiz /etc/ofbiz/$file; fi
 _EOF_
  push(@{$scripts{$pkg}->{'postrm'}->{'purge'}}, $postrm);