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

* Re: [gentoo-user] eclean and the --time-limit option
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Bothwick @ 2012-12-08 16:05 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

On Sat, 08 Dec 2012 15:33:17 +0100, Francesco Turco wrote:

> 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.

It sounds like you want wget to use --no-use-server-timestamps. I haven't
tried it, but something like

FETCHCOMMAND="$FETCHCOMMAND --no-use-server-timestamps"

in make.conf should do it. If not, get the default settings from
emerge --info -v and set FETCHCOMMAND to those plus
--no-use-server-timestamps.


-- 
Neil Bothwick

Isn't 'Criminal Lawyer' rather redundant?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user] eclean and the --time-limit option
  2012-12-08 16:05 ` Neil Bothwick
@ 2012-12-09 10:49   ` Francesco Turco
  0 siblings, 0 replies; 3+ messages in thread
From: Francesco Turco @ 2012-12-09 10:49 UTC (permalink / raw
  To: gentoo-user

On Sat, Dec 8, 2012, at 17:05, Neil Bothwick wrote:
> It sounds like you want wget to use --no-use-server-timestamps. I haven't
> tried it, but something like
> 
> FETCHCOMMAND="$FETCHCOMMAND --no-use-server-timestamps"
> 
> in make.conf should do it. If not, get the default settings from
> emerge --info -v and set FETCHCOMMAND to those plus
> --no-use-server-timestamps.

I added the --no-use-server-timestamps option to both FETCHCOMMAND and
RESUMECOMMAND variables in /etc/portage/make.conf, then removed
everything in /usr/portage/{distfiles,packages} and finally did emerge
-e @world. Now timestamps seems to be good and compatible with eclean's
--time-limit option.

Thank you Neil!


^ 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