Summary: | [portage] need default cron task for cleaning $PKGDIR and $DISTDIR | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jerome <jerome.bouat> |
Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jerome
2007-08-14 21:41:18 UTC
*** This bug has been marked as a duplicate of bug 33877 *** I'm reopening the bug according to comment <a href="show_bug.cgi?id=33877#c52">comment 52</a> of <a href="show_bug.cgi?id=33877">bug 33877</a>. For decreasing the additional load, I split the cron task I'm currently using in 2 tasks. /etc/cron.daily/clean-portage.daily --- #! /bin/sh source /etc/make.globals source /etc/make.conf for d in $PKGDIR $DISTDIR ; do if [ -x $d ]; then rm -fv $(find $d -type f -mtime +200) fi done --- /etc/cron.weekly/clean-portage.weekly --- #! /bin/sh eclean -dt 1w packages eclean -dt 1w distfiles --- Changing summary. So add it to your crontab and move on, or what's your trouble here? I for one don't want any such cronjob installed by default. I don't understand why a default zombies files catcher would disturb portage ? It is only a safeguard in order to avoid to have /usr/portage/distfiles growing up to more than 4 GB ! (In reply to comment #6) > It is only a safeguard in order to avoid to have > /usr/portage/distfiles growing up to more than 4 GB ! Simply because it's none of portage business to decide *on behalf* of users how should that directory be managed. Imagine people on dial-up connection (no, not ADSL, plain old dialup) - you know how long does it take to download 4 gigs worth of tarballs for them, which they still might need? `man eclean` already includes a cronjob example, go use it as is or adjust for your needs, you are the system administrator, not portage nor any 'default cronjob' script. Sorry, but I don't think the portage will use distrib files aged for more than 9 months. |