aboutsummaryrefslogtreecommitdiff
path: root/sbosrcarch
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-03 23:23:03 -0400
committerB. Watson <yalhcru@gmail.com>2018-06-03 23:23:03 -0400
commit2a6daf230e851869abd89675297275261ae498c1 (patch)
tree296605df902ff34f17664b42bf3237ffbcc0a7f5 /sbosrcarch
parent1a87ce81783c8e8b173eb3192ad9d25c4eadd115 (diff)
downloadsbostuff-2a6daf230e851869abd89675297275261ae498c1.tar.gz
sbosrcarch purge_mode fix, wip
Diffstat (limited to 'sbosrcarch')
-rwxr-xr-xsbosrcarch9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbosrcarch b/sbosrcarch
index 84449e6..c6e3add 100755
--- a/sbosrcarch
+++ b/sbosrcarch
@@ -1240,10 +1240,9 @@ sub purge_mode {
chdir($archivedir) or die "$archivedir: $!\n";
find({wanted => \&purge_pass_2_wanted, no_chdir => 1}, "by-name");
- for(keys %keep_filenames) {
- print "KEEP $_\n";
- }
- die "end of line";
+# for(keys %keep_filenames) {
+# print "KEEP $_\n";
+# }
# pass 3
if($rebuild) {
@@ -1276,7 +1275,7 @@ sub purge_pass_2_wanted {
s,^\./,,; # remove leading ./
my (undef, $cat, $name, $file) = split /\//, $_;
return unless defined $file;
- return if $keep_filenames{"$cat/$name/$file"};
+ return if $keep_filenames{"by-name/$cat/$name/$file"};
$purgebytes += -s $_;
$purgefiles++;