From: Arne Wiebalck Date: Fri, 13 Dec 2013 10:46:04 +0000 (+0100) Subject: make openafs uninstallable even if /afs is missing X-Git-Tag: upstream/1.8.0_pre1^2~867 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0c5d403076946c7a4f53f5e44df8fe0d986cea06;p=packages%2Fo%2Fopenafs.git 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. Change-Id: I3340c94521e15c56fe10840aff7b0b1080009c10 Reviewed-on: http://gerrit.openafs.org/10581 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index f3d199a86..2af07bed1 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -1378,6 +1378,7 @@ fi %preun if [ $1 = 0 ] ; then [ -d /afs ] && rmdir /afs + : fi %preun client