[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. apt-listbugs/0.1.9-11-gc1817f8
Francesco Poli (wintermute)
invernomuto at paranoici.org
Wed Jul 10 21:41:42 UTC 2013
The following commit has been merged in the master branch:
commit c1817f8dd2b79d8665e45456c2d647bbe20dcbb4
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Wed Jul 10 23:38:19 2013 +0200
replace tempfile with mktemp in cron.daily job
diff --git a/debian/changelog b/debian/changelog
index fd37b1d..559dcb8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ apt-listbugs (0.1.10) UNRELEASED; urgency=low
pending-state categories to be shown:
[pending,forwarded,pending-fixed,fixed,done]
* improved internationalization
+ * dropped the deprecated tempfile in the cron.daily job (replaced by mktemp)
-- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sat, 29 Jun 2013 17:18:26 +0200
diff --git a/debian/cron.daily b/debian/cron.daily
index e94ea78..531d559 100755
--- a/debian/cron.daily
+++ b/debian/cron.daily
@@ -26,7 +26,7 @@ prefclean()
test -x /usr/sbin/apt-listbugs || return 0
test -f /etc/apt/preferences || return 0
- tmp=$(tempfile)
+ tmp=$(mktemp --tmpdir apt-listbugs_tmp_preferences.XXXXXX)
/usr/share/apt-listbugs/aptcleanup > "$tmp" || return 0
if ! diff -B "$tmp" /etc/apt/preferences > /dev/null
--
apt-listbugs development tree
More information about the Apt-listbugs-commits
mailing list