]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Ignore dkms failure in the prerm of openafs-modules-dkms
authorRuss Allbery <rra@debian.org>
Fri, 3 Jul 2009 01:27:01 +0000 (18:27 -0700)
committerRuss Allbery <rra@debian.org>
Fri, 3 Jul 2009 01:27:01 +0000 (18:27 -0700)
* 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
debian/openafs-modules-dkms.prerm

index 6ce8ba37ddadab5536ddd7c80db2fc92afd66db5..6e9137f81d7572c0b16990c205729723c7dfd586 100644 (file)
@@ -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)
 
index 924fc6e05d203d516c3433ead803add0e59c7e71..d32321f57a4502445986a1eea063e77b316082ae 100644 (file)
@@ -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#