diff options
author | Charlie Shepherd <masterdriverz@gentoo.org> | 2007-01-27 16:51:37 +0000 |
---|---|---|
committer | Charlie Shepherd <masterdriverz@gentoo.org> | 2007-01-27 16:51:37 +0000 |
commit | 1712933a4925c4939f714f176fcb8b692192ccd3 (patch) | |
tree | b4b13dcddb5f0084fc01852298448c1fb6afe3b7 /app-admin/tmpwatch/files | |
parent | Marked ppc stable for bug #155327. (diff) | |
download | gentoo-2-1712933a4925c4939f714f176fcb8b692192ccd3.tar.gz gentoo-2-1712933a4925c4939f714f176fcb8b692192ccd3.tar.bz2 gentoo-2-1712933a4925c4939f714f176fcb8b692192ccd3.zip |
Don't clean /var/tmp/portage in the example cron if emerge is running; thanks to Ulf Schaper; bug 146973
(Portage version: 2.1.2_rc4-r3)
Diffstat (limited to 'app-admin/tmpwatch/files')
-rw-r--r-- | app-admin/tmpwatch/files/tmpwatch.cron | 4 |
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 |