1 |
On Mon, 28 Apr 2008 10:57:09 +0200, Enrico Weigelt wrote: |
2 |
|
3 |
> > pgrep emerge || rm -fr $(portageq envvar PORTAGE_TMPDIR)/portage |
4 |
> |
5 |
> This removes everything in /var/tmp/portage. I don't want this, |
6 |
> just those which have certain age (eg. 1 day), otherwise it |
7 |
> could interfere w/ running builds. And it also doesn't clean |
8 |
> old distfiles. |
9 |
|
10 |
It won't interfere with running ebuilds, because pgrep emerge will cause |
11 |
it to exit if emerge is running. Deleting anything over a day old is |
12 |
dangerous, think openoffice on a slow/loaded machine. ebuilds should |
13 |
clean up after themselves, so you only get cruft in $PORTAGE_TMPDIR when |
14 |
an ebuild fails. |
15 |
|
16 |
No, it doesn't clean distfiles, but you didn't ask about them, use eclean |
17 |
for that. |
18 |
|
19 |
|
20 |
-- |
21 |
Neil Bothwick |
22 |
|
23 |
As long as you do not move you can still choose any direction. |