Package: nbd-server
Version: 1:3.1-1
Severity: serious
Tags: patch
Justification: Policy 10.7.3

thanks so much for creating /etc/nbd-server/config, but now the file 
/etc/nbd-server/config isn't removed on purge, as it's only purging ucf's 
database of the file, and ucf requires to maintainer to remove the actual 
file. from the ucf man page:

  -p, --purge
    Removes all vestiges of the file from the state hashfile. This is required 
to allow
    ...
    Note: ucf  does
    not  actually  touch  the  file on disk in this operation, so any file 
removals are
    still the responsibility of the calling package.

the following patch should address the issue, by always removing 
/etc/nbd-server/config:

commit 8233aca96f738801dd9b5f599da9a4c3dc59e3dd
Author: Vagrant Cascadian <vagr...@freegeek.org>
Date:   Fri May 18 13:37:14 2012 -0700

    Manually remove /etc/nbd-server/config, as ucf only removes it from it's own
    databases.

diff --git a/debian/nbd-server.postrm b/debian/nbd-server.postrm
index 51243c1..9dea6d1 100644
--- a/debian/nbd-server.postrm
+++ b/debian/nbd-server.postrm
@@ -27,7 +27,8 @@ case "$1" in

         ;;
        purge)
-       ucf --purge /etc/nbd-server/config || rm -f /etc/nbd-server/config
+       ucf --purge /etc/nbd-server/config ||:
+       rm -f /etc/nbd-server/config ||:
        db_purge ||:
        ;;
     *)


live well,
  vagrant



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to