From e582383fdbcd94cdbe8daa7e189d45a5e64d783c Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 2 Jul 2009 18:27:01 -0700 Subject: [PATCH] Ignore dkms failure in the prerm of openafs-modules-dkms * Ignore failures to remove an existing DKMS tree in the prerm of the openafs-modules-dkms package. In the possible cases where the tree may not be present to be removed, failing package removal doesn't make sense. (Further addresses LP #368471.) --- debian/changelog | 4 ++++ debian/openafs-modules-dkms.prerm | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 6ce8ba37d..6e9137f81 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,9 @@ openafs (1.4.11~pre1+dfsg1-2) UNRELEASED; urgency=low + * Ignore failures to remove an existing DKMS tree in the prerm of the + openafs-modules-dkms package. In the possible cases where the tree + may not be present to be removed, failing package removal doesn't + make sense. (Further addresses LP #368471.) * Translation updates: - Russian, thanks Yuri Kozlov. (Closes: #534807) diff --git a/debian/openafs-modules-dkms.prerm b/debian/openafs-modules-dkms.prerm index 924fc6e05..d32321f57 100644 --- a/debian/openafs-modules-dkms.prerm +++ b/debian/openafs-modules-dkms.prerm @@ -8,6 +8,9 @@ package=openafs-modules-dkms version=`dpkg-query -W -f='${Version}' "$package" \ | sed -e 's/[+-].*//' -e 's/\.dfsg.*//' -e 's/~//g'` -dkms remove -m openafs -v "$version" --all +# In some cases, broken packages have caused this to fail. If the sysadmin +# manually deletes the directory, that will also fail. In neither case +# should we abort the postrm, so ignore failure. +dkms remove -m openafs -v "$version" --all || true #DEBHELPER# -- 2.39.5