[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, develop, updated. 0.43-46-gf314139
Andreas Beckmann
debian at abeckmann.de
Mon Feb 27 17:50:19 UTC 2012
The following commit has been merged in the develop branch:
commit 9a68498c63216fc4e9b2bca1addf349960f70713
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Mon Feb 20 15:19:40 2012 +0100
known_problems: report failed packages leaving alternatives
Add a report for failed packages that leave unowned files in
/etc/alternatives (and probably dangling symlinks in /usr/bin)
after purge.
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/home/piupartsm/bin/known_problems/alternatives_after_purge_error.conf b/home/piupartsm/bin/known_problems/alternatives_after_purge_error.conf
new file mode 100644
index 0000000..1e48c26
--- /dev/null
+++ b/home/piupartsm/bin/known_problems/alternatives_after_purge_error.conf
@@ -0,0 +1,16 @@
+#
+# detect packages with unowned files in /etc/alternatives after purge (policy 6.8)
+#
+COMMAND='grep -E "/etc/alternatives/.*not owned"'
+WHERE='fail bugged'
+ISSUE=0
+HEADER='Packages with leftover alternatives after purge'
+HELPTEXT='
+<p>
+Packages with unowned files in /etc/alternatives after purge (violating policy 6.8) see
+<a href="http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails">http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails</a>
+</p>
+<p>
+Alternatives are usually registered with update-alternatives in <b>postinst configure</b> and need to be unregistered again in <b>prerm remove</b>.
+</p>
+'
--
piatti.debian.org configuration files
More information about the Piuparts-commits
mailing list