chiark / gitweb /
git-cache-proxy: housekeeping: More correctly handle errors from remove_tree
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jul 2014 14:10:49 +0000 (15:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jul 2014 14:10:49 +0000 (15:10 +0100)
debian/changelog
scripts/git-cache-proxy

index e47c527..4118bc8 100644 (file)
@@ -2,6 +2,7 @@ chiark-utils (4.3.1) unstable; urgency=low
 
   Bugfixes:
   * expire-iso8601: Fix mistake in usage message.
+  * git-cache-proxy: Fix various bugs in housekeeping.
 
  --
 
index eafbb8a..334f509 100755 (executable)
@@ -415,7 +415,8 @@ sub housekeeping () {
                logm 'warning', "housekeeping: $dir: problems with".
                    " deletion prevent cleanup:";
                foreach my $err (@$errs) {
-                   logm 'info', "problem deleting: $err->[0]: $err->[1]";
+                   my ($file, $message) = %$err;
+                   logm 'info', "problem deleting: $file: $message";
                }
            }
        }