From cd90404cb12b5e4615192804b9e3b8c31e702266 Mon Sep 17 00:00:00 2001 From: Charlie Shepherd Date: Sat, 27 Jan 2007 16:51:37 +0000 Subject: 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 --- app-admin/tmpwatch/files/tmpwatch.cron | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app-admin/tmpwatch/files') 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 -- cgit v1.2.3-65-gdbad