tags 688436 + patch
tags 688436 + pending
thanks

Dear maintainer,

I've prepared an NMU for ampache (versioned as 3.6-git408e713+dfsg-3.1) and
uploaded it to DELAYED/7. Please feel free to tell me if I
should delay it longer.

As you can see, I have only added ampache.prerm, where I remove the link
/etc/ampache/ampache.conf. The other files are automatically removed by dpkg.
It is removed on the remove action (not purge), just like the other links in
/etc. The files they link to are conffiles, and are properly removed by the
package only on purge.

Just now I'm thinking that you could also let the link be managed, by adding it
to ampache.links. Is there a reason you don't do that?

If you have any questions, including a request for sponsorship of a new
version, feel free to contact me.

Thanks,
Bas

diff -Nru ampache-3.6-git408e713+dfsg/debian/ampache.postrm 
ampache-3.6-git408e713+dfsg/debian/ampache.postrm
--- ampache-3.6-git408e713+dfsg/debian/ampache.postrm   2012-09-22 
23:59:04.000000000 +0200
+++ ampache-3.6-git408e713+dfsg/debian/ampache.postrm   2012-10-14 
17:13:27.000000000 +0200
@@ -4,14 +4,6 @@
 
 . /usr/share/debconf/confmodule
 
-#ampache.conf is left behind during purge so remove it manually this way
-#everything is removed on purge.
-ampconf_rm(){
-       if [ -e /etc/ampache/ampache.conf ]; then
-               rm -f /etc/ampache/ampache.conf
-       fi
-}
-
 restart_server(){
        if [ -e /var/run/apache2.pid ]; then
                service apache2 reload
@@ -24,7 +16,6 @@
        if [ "$re_start" = "false" ]; then
                printf "Please restart the web server manually."
        elif [ "$re_start" = "true" ]; then
-               ampconf_rm
                restart_server
        else
                printf "unable to de-configure ampache, please do so 
manually.\n"
diff -Nru ampache-3.6-git408e713+dfsg/debian/ampache.prerm 
ampache-3.6-git408e713+dfsg/debian/ampache.prerm
--- ampache-3.6-git408e713+dfsg/debian/ampache.prerm    1970-01-01 
01:00:00.000000000 +0100
+++ ampache-3.6-git408e713+dfsg/debian/ampache.prerm    2012-10-14 
17:18:01.000000000 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+# This link is created on postinst, so must be removed explicitly.
+rm -f /etc/ampache/ampache.conf
+
+#DEBHELPER#
+
+exit 0
diff -Nru ampache-3.6-git408e713+dfsg/debian/changelog 
ampache-3.6-git408e713+dfsg/debian/changelog
--- ampache-3.6-git408e713+dfsg/debian/changelog        2012-09-22 
16:21:57.000000000 +0200
+++ ampache-3.6-git408e713+dfsg/debian/changelog        2012-10-14 
17:15:09.000000000 +0200
@@ -1,3 +1,10 @@
+ampache (3.6-git408e713+dfsg-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove generated link in prerm.  Closes: #688436
+
+ -- Bas Wijnen <wij...@debian.org>  Sun, 14 Oct 2012 16:31:58 +0200
+
 ampache (3.6-git408e713+dfsg-3) unstable; urgency=low
 
   * Remove statements in debian/ampache.postrm that manually remove conffiles,


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

Reply via email to