[SCM] Debian packaging of perlindex branch, master, updated. cf5fdfe6b085894dcf187b315f30261620acf643
Damyan Ivanov
dmn at debian.org
Wed Jan 25 15:02:04 UTC 2012
The following commit has been merged in the master branch:
commit cf5fdfe6b085894dcf187b315f30261620acf643
Author: Damyan Ivanov <dmn at debian.org>
Date: Wed Jan 25 17:01:42 2012 +0200
cron.daily: create /var/cache/perlindex if it doesn't exist
According to FHS[1] the data under /var/cache may disappear at any time (or so
Ansgar says :)
[1] http://www.pathname.com/fhs/pub/fhs-2.3.html#VARCACHEAPPLICATIONCACHEDATA
diff --git a/debian/changelog b/debian/changelog
index 36d89c0..ee3e78e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ perlindex (1.605-4) UNRELEASED; urgency=low
* postinst: migrate existing index files from /usr/share/man to
/var/cache/perlindex on upgrades from versions creating them in
/usr/share/man
+ * cron.daily: create /var/cache/perlindex if it doesn't exist
+ Thanks to Ansgar Burchardt
-- Ansgar Burchardt <ansgar at debian.org> Wed, 27 Jul 2011 18:49:51 +0200
diff --git a/debian/perlindex.cron.daily b/debian/perlindex.cron.daily
index 1cebf64..b4ce00b 100644
--- a/debian/perlindex.cron.daily
+++ b/debian/perlindex.cron.daily
@@ -1,4 +1,8 @@
#!/bin/sh
# cron script for perlindex to update the database.
test -x /usr/bin/perlindex || exit 0
+
+DIR=/var/cache/perlindex
+[ -d $DIR ] || mkdir $DIR && chmod 0755 $DIR
+
perlindex -index >/dev/null 2>/dev/null
--
Debian packaging of perlindex
More information about the Pkg-perl-cvs-commits
mailing list