[Debian-islamic-commits] [SCM] Packaging for Zekr branch, master, updated. debian/1.0.0+repack-2-2-gc0ca059

أحمد المحمودي (Ahmed El-Mahmoudy) aelmahmoudy at sabily.org
Sat Dec 4 09:15:56 UTC 2010


The following commit has been merged in the master branch:
commit c0ca059dd9cfa430a8ca4b78670fa5dacc3be482
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
Date:   Sat Dec 4 11:03:19 2010 +0200

    Do not create workspace dir when just running '-index all' or
    '-clean index-all', to avoid having user workspace dir created with root
    ownership during postinst/prerm. (LP: #685016)

diff --git a/debian/zekr.sh b/debian/zekr.sh
index d452fd2..480adcf 100644
--- a/debian/zekr.sh
+++ b/debian/zekr.sh
@@ -11,12 +11,20 @@ while [ ! -z $1 ]; do
       ZEKR_WORKSPACE=$2
       shift
       ;;
+    -index)
+      [ ! "$2" = "all" ] || NO_WORKSPACE=1
+      shift
+      ;;
+    -clean)
+      [ ! "$2" = "index-all" ] || NO_WORKSPACE=1
+      shift
+      ;;
   esac
   shift
 done
 
 # If workspace dir. does not exist, create it:
-[ -d "${ZEKR_WORKSPACE}" ] || mkdir -p ${ZEKR_WORKSPACE}
+[ -d "${ZEKR_WORKSPACE}" ] || [ $NO_WORKSPACE ] || mkdir -p ${ZEKR_WORKSPACE}
 
 ZEKR_CONF_FILE=${ZEKR_WORKSPACE}/zekrrc-debian
 

-- 
Packaging for Zekr



More information about the Debian-islamic-commits mailing list