[Debian-islamic-commits] [SCM] Packaging for Zekr branch, master, updated. debian/1.0.0+repack-7-6-ge863058
أحمد المحمو =?UTF-8?Q?=D8=AF=D9=8A=20?=(Ahmed El-Mahmoudy)
aelmahmoudy at sabily.org
Sat Jul 14 08:39:37 UTC 2012
The following commit has been merged in the master branch:
commit e863058b2af3c13333ff2a1311613510b7bbf42b
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
Date: Sat Jul 14 10:26:10 2012 +0200
Set workspace to a temporary directory when building/clearing index
files
diff --git a/debian/postinst b/debian/postinst
index 44a9b4d..0db3162 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -22,12 +22,14 @@ set -e
case "$1" in
configure)
+ TMPDIR=$(mktemp -d)
#indexing Quran text
- zekr -index all
+ zekr -workspace $TMPDIR -index all
#indexing installed Quran translations
cd /usr/share/zekr/res/text/trans/ && for transfilename in *.trans.zip; do
- zekr -index all ${transfilename%.trans.zip}
+ zekr -workspace $TMPDIR -index all ${transfilename%.trans.zip}
done
+ rm -rf $TMPDIR
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/prerm b/debian/prerm
index 7d47fd1..16d5b4a 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -19,9 +19,11 @@ set -e
case "$1" in
remove|upgrade|deconfigure)
- zekr -clean index-all
+ TMPDIR=$(mktemp -d)
+ zekr -workspace $TMPDIR -clean index-all
rm -rf /usr/share/zekr/res/index/
# rmdir /usr/share/zekr/res/index/
+ rm -rf $TMPDIR
;;
failed-upgrade)
--
Packaging for Zekr
More information about the Debian-islamic-commits
mailing list