public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] eclean and the --time-limit option
@ 2012-12-08 14:33 Francesco Turco
  2012-12-08 16:05 ` Neil Bothwick
  0 siblings, 1 reply; 3+ messages in thread
From: Francesco Turco @ 2012-12-08 14:33 UTC (permalink / raw
  To: gentoo-user

Hello.

I usually use the following commands to clean distfiles and binary
packages after an upgrade:

# eclean --destructive distfiles
# eclean --destructive packages

Now I'd like to add the --time-limit=1w option, in order to prevent
recent files to be deleted. I think this would be useful for having time
to properly test the system and rapidly reverting any problematic
update. Or when you remove a program but you change idea some days later
and you want it back.

In man eclean it says:
> don't delete files modified since <time>

So eclean looks for modification time. In /usr/portage/packages files
were last modified when they were last emerged. So this is OK. But in
/usr/portage/distfiles files last modification time does not correspond
to when they were last downloaded. So it could happen that you
downloaded package X today, tried it, didn't like it, unmerged it, but
since its sources may have a modification time more than 1 week ago it
could be deleted by eclean. I have distfiles whose modification time is
years in the past, although my system is just some days old.

I wonder if there's some way to fix this, perhaps by telling Portage to
update modification time for distfiles when they are fetched from
servers. Or using some other option with eclean.

Thank you.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-09 10:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-08 14:33 [gentoo-user] eclean and the --time-limit option Francesco Turco
2012-12-08 16:05 ` Neil Bothwick
2012-12-09 10:49   ` Francesco Turco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox