Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CPAN installer with files in the future

by merlyn (Sage)
on Feb 14, 2005 at 13:36 UTC ( #430779=note: print w/replies, xml ) Need Help??


in reply to CPAN installer with files in the future

It's not a common problem that I've seen, and I install a huge amount of stuff immediately from the CPAN (to the point where it even annoys some of the developers when I report bugs within minutes of CPAN submission).

The timestamps inside a tarball are timezone neutral, so it can't be about "locale". However, I have seen very occasionally a tarball created with a mis-set clock so that files are a day or so into the future. First, I report the mistake immediately, but the workaround is simple: set all modtimes to "right now":

tar xvfz Bad-Distro-1.4.tar.gz find Bad-Distro-1.4 -type f -print | xargs -t touch

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: CPAN installer with files in the future
by gellyfish (Monsignor) on Feb 14, 2005 at 16:22 UTC

    Or alternatively if the version of tar supports it you can use the -m option which doesn't restore the modification time from the archive. I.E:

    tar xvmfz Bad-Distro-1.4.tar.gz

    /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://430779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2021-03-05 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (113 votes). Check out past polls.

    Notices?