diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-08-27T16·59+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-08-27T16·59+0000 |
commit | 5bcdc7e3517e6d679cad1aaba41e4deb76d5a6e7 (patch) | |
tree | f572f2cb2cfc366dbaa957a70f96a63b7c8120ef /scripts/maintenance/gc-releases.pl | |
parent | a95ba4cdd9aa9f9c98928732dd26fba2757ade26 (diff) |
* Update the cleanup script.
Diffstat (limited to 'scripts/maintenance/gc-releases.pl')
-rwxr-xr-x | scripts/maintenance/gc-releases.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/maintenance/gc-releases.pl b/scripts/maintenance/gc-releases.pl index 80b2726c5a04..b1e41a97c04f 100755 --- a/scripts/maintenance/gc-releases.pl +++ b/scripts/maintenance/gc-releases.pl @@ -1,8 +1,9 @@ -#! /usr/bin/perl -w -I. -I.. +#! /var/run/current-system/sw/bin/perl -w -I. -I.. use strict; -use readmanifest; +use NixManifest; use readcache; +use File::Basename; # Read the manifests. @@ -49,6 +50,9 @@ foreach my $patch (keys %patches) { foreach my $archive (keys %readcache::archives) { next if $archive eq "." || $archive eq ".."; if (!defined $usedFiles{$archive}) { - print $readcache::archives{$archive}, "\n"; + my $file = $readcache::archives{$archive}; + print "$file\n"; + my $hashFile = dirname($file) . "/.hash." . basename($file); + print "$hashFile\n" if -e $hashFile; } } |