summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Shepherd <masterdriverz@gentoo.org>2007-01-27 16:51:37 +0000
committerCharlie Shepherd <masterdriverz@gentoo.org>2007-01-27 16:51:37 +0000
commitcd90404cb12b5e4615192804b9e3b8c31e702266 (patch)
tree94b1821d2b4c68797bfacb7f6e34a23982cea0d0 /app-admin/tmpwatch/files
parentMarked ppc stable for bug #155327. (diff)
downloadhistorical-cd90404cb12b5e4615192804b9e3b8c31e702266.tar.gz
historical-cd90404cb12b5e4615192804b9e3b8c31e702266.tar.bz2
historical-cd90404cb12b5e4615192804b9e3b8c31e702266.zip
Don't clean /var/tmp/portage in the example cron if emerge is running; thanks to Ulf Schaper; bug 146973
Package-Manager: portage-2.1.2_rc4-r3
Diffstat (limited to 'app-admin/tmpwatch/files')
-rw-r--r--app-admin/tmpwatch/files/tmpwatch.cron4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-admin/tmpwatch/files/tmpwatch.cron b/app-admin/tmpwatch/files/tmpwatch.cron
index 54f9e13e1afc..dae37babd5a1 100644
--- a/app-admin/tmpwatch/files/tmpwatch.cron
+++ b/app-admin/tmpwatch/files/tmpwatch.cron
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpwatch/files/tmpwatch.cron,v 1.3 2007/01/17 21:24:23 antarus Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpwatch/files/tmpwatch.cron,v 1.4 2007/01/27 16:51:37 masterdriverz Exp $
# vim: ft=sh
# This cron script contains several (commented out) examples. You may use
@@ -30,7 +30,7 @@ TMPWATCH="/usr/sbin/tmpwatch"
# Delete everything in PORTAGE_TMPDIR that hasn't been modified in 2 weeks.
#
-# if [[ -d ${PORTAGE_TMPDIR:-/var/tmp/portage} ]]; then
+# if [[ -d ${PORTAGE_TMPDIR:-/var/tmp/portage} && -z $(/usr/bin/pgrep emerge) ]]; then
# ${TMPWATCH} --mtime --all 336 ${PORTAGE_TMPDIR:-/var/tmp/portage}
# fi