diff options
Diffstat (limited to 'sbosrcarch')
-rwxr-xr-x | sbosrcarch | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1295,7 +1295,14 @@ sub purge_pass_2_wanted { # helper for purge_mode, removes all files in by-md5 # dirs that aren't listed in %keep_md5sums sub purge_pass_3_wanted { - print "purge_pass_3_wanted $_\n"; + s,^\./,,; # remove leading ./ + return unless -d $_; # not necessarily necessary... + my (undef, undef, undef, $md5sum) = split /\//, $_; + if($keep_md5sums{$md5sum}) { + print "keep md5sum: $md5sum\n"; + } else { + print "rmtree $_\n"; + } } sub rebuild_wanted { |