Permalink
Browse files

Add an extra debug message during clean_files().

  • Loading branch information...
1 parent 59a85c2 commit 922db9f57e4042be5bb286a9b41aa461347a9afe Jeffrey Ryan Thalhammer committed Aug 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Pinto/Repository.pm
View
@@ -636,12 +636,13 @@ sub clean_files {
return if $archive eq 'CHECKSUMS';
return if $self->get_distribution(author => $author, archive => $archive);
- $self->notice("Removing orphaned archive $path");
+ $self->notice("Removing orphaned archive at $path");
$self->store->remove_archive($path);
$deleted++;
};
my $authors_id_dir = $self->config->authors_dir->subdir('id');
+ $self->debug("Cleaning orphaned archives beneath $authors_id_dir");
File::Find::find({no_chdir => 1, wanted => $callback}, $authors_id_dir);
return $deleted;

0 comments on commit 922db9f

Please sign in to comment.