[xml/sgml-pkgs] Bug#482140 -- hackish patch
Tim Spriggs
tim at tajinc.org
Mon Jun 16 03:38:08 UTC 2008
Hi,
I know this is a poor hack but it seems to quickly fix this issue.
Basically this appends "|| true" to all update-xmlcatalog lines in the
postinst script. Since update-xmlcatalog checks for duplicates and exits
this fixes the duplicate condition.
Thanks,
-Tim
# diff -ruN docbook_dl/docbook-xml-4.5/debian/rules
shameless_patch/docbook-xml-4.5/debian/rules
--- docbook_dl/docbook-xml-4.5/debian/rules 2008-06-04
22:47:24.000000000 -0700
+++ shameless_patch/docbook-xml-4.5/debian/rules 2008-06-15
20:03:05.042284007 -0700
@@ -113,6 +113,9 @@
dh_installexamples
dh_installcatalogs
dh_installxmlcatalogs
+ @# Patch to ignore errors
+ awk '/update-xmlcatalog/ {printf "%s", \$0 ;print " || true"}
!/update-xml-catalog/ {print}' debian/docbook-xml.postinst.debhelper >
debian/docbook-xml.postinst.debhelper.tmp
+ mv -f debian/docbook-xml.postinst.debhelper.tmp
debian/docbook-xml.postinst.debhelper
dh_link
find $(CURDIR)/debian/$(PACKAGE) -type l -follow >/dev/null #
exits 1 on broken links
dh_compress
More information about the debian-xml-sgml-pkgs
mailing list