[gentoo-user] Portage - touch files

2008-04-28 Thread Enrico Weigelt
Hi folks, I'd like to automatic purging of portage's temporary files from time to time (eg. nightly). But this doesn't work since downloaded uncompressed files have their original timestamps, not the time of fetch/uncompress. Is there any way to tweak this to the current timestamp ? thx --

Re: [gentoo-user] Portage - touch files

2008-04-28 Thread Neil Bothwick
On Mon, 28 Apr 2008 10:28:35 +0200, Enrico Weigelt wrote: I'd like to automatic purging of portage's temporary files from time to time (eg. nightly). But this doesn't work since downloaded uncompressed files have their original timestamps, not the time of fetch/uncompress. What's wrong with

Re: [gentoo-user] Portage - touch files

2008-04-28 Thread Etaoin Shrdlu
On Monday 28 April 2008, 10:28, Enrico Weigelt wrote: Hi folks, I'd like to automatic purging of portage's temporary files from time to time (eg. nightly). But this doesn't work since downloaded uncompressed files have their original timestamps, not the time of fetch/uncompress. Is there

Re: [gentoo-user] Portage - touch files

2008-04-28 Thread Enrico Weigelt
* Neil Bothwick [EMAIL PROTECTED] wrote: What's wrong with pgrep emerge || rm -fr $(portageq envvar PORTAGE_TMPDIR)/portage This removes everything in /var/tmp/portage. I don't want this, just those which have certain age (eg. 1 day), otherwise it could interfere w/ running builds. And it

Re: [gentoo-user] Portage - touch files

2008-04-28 Thread Enrico Weigelt
* Etaoin Shrdlu [EMAIL PROTECTED] wrote: On Monday 28 April 2008, 10:28, Enrico Weigelt wrote: Hi folks, I'd like to automatic purging of portage's temporary files from time to time (eg. nightly). But this doesn't work since downloaded uncompressed files have their original

Re: [gentoo-user] Portage - touch files

2008-04-28 Thread Neil Bothwick
On Mon, 28 Apr 2008 10:57:09 +0200, Enrico Weigelt wrote: pgrep emerge || rm -fr $(portageq envvar PORTAGE_TMPDIR)/portage This removes everything in /var/tmp/portage. I don't want this, just those which have certain age (eg. 1 day), otherwise it could interfere w/ running builds. And

Re: [gentoo-user] Portage - touch files

2008-04-28 Thread Enrico Weigelt
* Neil Bothwick [EMAIL PROTECTED] wrote: It won't interfere with running ebuilds, because pgrep emerge will cause it to exit if emerge is running. Ah, I missed that point ;-o Deleting anything over a day old is dangerous, think openoffice on a slow/loaded machine. Therefore I'm using