Package: pybliographer
Version: 1.2.12-2
Severity: serious
Tags: patch
Justification: Policy 6.8

Unfortunately, my patch for #540529 was broken and now pybliographer leaves unowned files after removal. Sorry for that, please don't trust me again. ;)

The attached patch hopefully fixes this mess.

--
Jakub Wilk
diff --git a/debian/pybliographer.postinst b/debian/pybliographer.postinst
--- a/debian/pybliographer.postinst
+++ b/debian/pybliographer.postinst
@@ -4,8 +4,9 @@
 
 case "$1" in
     configure)
+        update-alternatives --remove pybliographer /usr/bin/bibtex.pybliographer
         update-alternatives \
-            --install /usr/bin/pybtex pybliographer /usr/bin/bibtex.pybliographer 100 --slave /usr/share/man/man1/pybtex.1.gz pybtex.1.gz /usr/share/man/man1/bibtex.pybliographer.1.gz
+            --install /usr/bin/pybtex pybtex /usr/bin/bibtex.pybliographer 100 --slave /usr/share/man/man1/pybtex.1.gz pybtex.1.gz /usr/share/man/man1/bibtex.pybliographer.1.gz
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/pybliographer.prerm b/debian/pybliographer.prerm
--- a/debian/pybliographer.prerm
+++ b/debian/pybliographer.prerm
@@ -7,7 +7,7 @@
 
 case "$1" in
     remove|upgrade|deconfigure)
-        update-alternatives --remove pybliographer /usr/bin/pybtex
+        update-alternatives --remove pybtex /usr/bin/bibtex.pybliographer
     ;;
 
     failed-upgrade)

Reply via email to