From 09ce03269ba061b76699e7b3099a3ea48d00235c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 3 Jun 2018 23:19:05 -0400 Subject: sbosrcarch purge_mode fix, wip --- sbosrcarch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sbosrcarch') diff --git a/sbosrcarch b/sbosrcarch index bfa91b5..07e02c6 100755 --- a/sbosrcarch +++ b/sbosrcarch @@ -1240,6 +1240,11 @@ sub purge_mode { chdir($archivedir) or die "$archivedir: $!\n"; find({wanted => \&purge_pass_2_wanted, no_chdir => 1}, "by-name"); + for(keys %keep_filenames) { + warn $_; + } + die "end of line"; + # pass 3 if($rebuild) { rmtree("by-md5"); @@ -1271,7 +1276,7 @@ sub purge_pass_2_wanted { s,^\./,,; # remove leading ./ my (undef, $cat, $name, $file) = split /\//, $_; return unless defined $file; - return if $keep_filenames{$file}; + return if $keep_filenames{"$cat/$name/$file"}; $purgebytes += -s $_; $purgefiles++; -- cgit v1.2.3