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

Re: Proposal to improve approx configuration upgrades



Le mardi 6 octobre 2009 17:09:05, Dominique Dumont a écrit :
> The patch for approx is much simpler (See attachment):

Ahem, here's the patch in attachment. Sorry.

All the best
diff -Naur approx-4.0/debian/approx.postinst approx-dev/debian/approx.postinst
--- approx-4.0/debian/approx.postinst	2009-06-30 18:16:45.000000000 +0200
+++ approx-dev/debian/approx.postinst	2009-06-30 18:23:10.000000000 +0200
@@ -34,4 +34,8 @@
     fi
 fi
 
+# upgrade user configuration
+# FIXME: upgrade requiring user interaction are not handled
+config-edit -model Approx -ui none -save
+
 #DEBHELPER#
diff -Naur approx-4.0/debian/control approx-dev/debian/control
--- approx-4.0/debian/control	2009-06-30 18:16:45.000000000 +0200
+++ approx-dev/debian/control	2009-06-30 18:22:10.000000000 +0200
@@ -12,7 +12,7 @@
 
 Package: approx
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${F:OCamlDeps}, lsb-base (>= 3.2), adduser, bzip2, curl, openbsd-inetd | inet-superserver, update-inetd
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${F:OCamlDeps}, lsb-base (>= 3.2), adduser, bzip2, curl, openbsd-inetd | inet-superserver, update-inetd, libconfig-model-approx-perl
 Description: caching proxy server for Debian archive files
  Approx is an HTTP-based proxy server for Debian-style package archives.
  It fetches files from remote repositories on demand,

Reply to: