[xml/sgml-pkgs] Bug#255472: Installation fails. cannot stat `/usr/share/sgml-base/catalog.super'
Ardo van Rangelrooij
Ardo van Rangelrooij <ardo@debian.org>, 255472@bugs.debian.org
Mon, 21 Jun 2004 14:00:50 -0500
Hi,
I knew there was a reason I didn't make the preinst and the postrm symmetrical.
And this was it. Oh well...
Anyway, thanks for spotting this. I just uploaded a new version.
Thanks,
Ardo
Andreas Metzler (ametzler@downhill.at.eu.org) wrote:
> Package: sgml-base
> Version: 1.23
> Severity: serious
>
> --------------------
> /tmp XX:> dpkg -i sgml-base_1.23_all.deb
> Selecting previously deselected package sgml-base.
> (Reading database ... 15885 files and directories currently installed.)
> Unpacking sgml-base (from sgml-base_1.23_all.deb) ...
> cp: cannot stat `/usr/share/sgml-base/catalog.super': No such file or directory
> dpkg: error processing sgml-base_1.23_all.deb (--install):
> subprocess pre-installation script returned error exit status 1
> Errors were encountered while processing:
> sgml-base_1.23_all.deb
> --------------------
>
> Which is caused by this bit in preinst:
> [ ! -f /etc/sgml/catalog ] \
> && cp -a /usr/share/sgml-base/catalog.super /etc/sgml/catalog
>
> Obviously you cannot access files in sgml-base in its preinst script,
> as it runs *before* the package is unpacked.
> cu andreas
> --
> "See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
> fuhggvat qbja gur juveyvat tha.
> Neal Stephenson in "Snow Crash"
--
Ardo van Rangelrooij Debian XML/SGML Group
<ardo@debian.org> <debian-xml-sgml-devel@lists.alioth.debian.org>
http://people.debian.org/~ardo/ http://debian-xml-sgml.alioth.debian.org/