diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-18 09:37:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-18 09:37:14 +0000 |
commit | 13e87097c1bd5ae3b5af9e279264aac1d86f9e62 (patch) | |
tree | 0bd26b1fd3cac42b5f2e4020175a477fa13dddd2 /main/docbook-xsl/docbook-xsl.post-deinstall | |
parent | 2d5ad4d5336f4a51514b3c26bf8ce318e027bfdf (diff) | |
download | aports-13e87097c1bd5ae3b5af9e279264aac1d86f9e62.tar.bz2 aports-13e87097c1bd5ae3b5af9e279264aac1d86f9e62.tar.xz |
main/docbook-xsl: fix post-deinstall
dont exit with error if package does not exist.
Diffstat (limited to 'main/docbook-xsl/docbook-xsl.post-deinstall')
-rw-r--r-- | main/docbook-xsl/docbook-xsl.post-deinstall | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main/docbook-xsl/docbook-xsl.post-deinstall b/main/docbook-xsl/docbook-xsl.post-deinstall index 1d042b04d9..2b9f0d4a15 100644 --- a/main/docbook-xsl/docbook-xsl.post-deinstall +++ b/main/docbook-xsl/docbook-xsl.post-deinstall @@ -2,6 +2,9 @@ _OLD=${1%-r[0-9]*} -xmlcatalog --noout --del \ - "/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" \ - etc/xml/catalog +if which xmlcatalog > /dev/null; then + xmlcatalog --noout --del \ + "/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" \ + etc/xml/catalog +fi + |