Attached is the patch with which I intend to NMU xml-core in a little while. The bug has been open for about three weeks now, and the fix is simple enough. I didn't use Ghe Rivero's patch, but removed all use of cd (since as far as I can determine, such use is useless). The package as patched is relatively lintian and linda clean (a few warnings that are harmelss and will be left for the maintainer to fix), and passes piuparts testing (except for a warning about /etc/sgml, but that seems to be due to a dependency, not this package).
=== modified file 'debian/changelog' --- debian/changelog +++ debian/changelog @@ -1,3 +1,12 @@ +xml-core (0.09-0.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/xml-core.postrm, debian/xml-core.preinst: Use absolute path + names for files instead of doing a "cd /foo; mv plim plom; cd -" dance + (especially since the dance if fragile, too). Closes: #358364. + + -- Lars Wirzenius <[EMAIL PROTECTED]> Thu, 13 Apr 2006 20:25:34 +0000 + xml-core (0.09) unstable; urgency=low * schemas/catalog: added official FPI for XML catalog DTD === modified file 'debian/xml-core.postrm' --- debian/xml-core.postrm +++ debian/xml-core.postrm @@ -16,9 +16,7 @@ ## ------------------------------------------------------------------ ## remove /var/lib/xml-core - cd /var/lib - rmdir --ignore-fail-on-non-empty xml-core - cd - >/dev/null + rmdir --ignore-fail-on-non-empty /var/lib/xml-core ## ------------------------------------------------------------------ ## remove root XML catalog @@ -27,17 +25,13 @@ ## ------------------------------------------------------------------ ## remove /etc/xml - cd /etc - rmdir --ignore-fail-on-non-empty xml - cd - >/dev/null + rmdir --ignore-fail-on-non-empty /etc/xml ## ------------------------------------------------------------------ ## restore legacy /etc/xml/catalog if [ -f /etc/xml/catalog.legacy ] then - cd /etc/xml - mv catalog.legacy catalog - cd - >/dev/null + mv /etc/xml/catalog.legacy /etc/xml/catalog fi fi === modified file 'debian/xml-core.preinst' --- debian/xml-core.preinst +++ debian/xml-core.preinst @@ -34,9 +34,7 @@ ## preserve legacy /etc/xml/catalog if [ -f /etc/xml/catalog ] then - cd /etc/xml - mv catalog catalog.legacy - cd - >/dev/null + mv /etc/xml/catalog /etc/xml/catalog.legacy fi fi