From 642e7f586de57683aadbc59545ebb5607afc90c6 Mon Sep 17 00:00:00 2001 From: Arne Wiebalck Date: Fri, 13 Dec 2013 11:46:04 +0100 Subject: [PATCH] make openafs uninstallable even if /afs is missing The preuninstall scriptlet of the openafs RPM removes /afs. If, for whatever reason, that directory does not exist, the scriptlet will fail and hence break the deinstallation of the openafs package. The proposed patch makes the scriptlet evaluate to true even if the /afs has been removed by some other means and allows the package to be uninstalled. Reviewed-on: http://gerrit.openafs.org/10581 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 0c5d403076946c7a4f53f5e44df8fe0d986cea06) Change-Id: Ie686545c6618242f2c2644a01891cd0dfe0d0d05 Reviewed-on: http://gerrit.openafs.org/10600 Reviewed-by: Ken Dreyer Reviewed-by: Stephan Wiesand Tested-by: BuildBot --- src/packaging/RedHat/openafs.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 0c988fc2f..931d0c576 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -1393,6 +1393,7 @@ fi %preun if [ $1 = 0 ] ; then [ -d /afs ] && rmdir /afs + : fi %preun client -- 2.39.5