don't die on md5sum without filename
authorDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Sun, 20 May 2012 21:06:23 +0000 (23:06 +0200)
committerDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Sun, 20 May 2012 21:06:23 +0000 (23:06 +0200)
lib/CloudStore/Store.pm

index 37a1ecb..1956a73 100644 (file)
@@ -377,6 +377,10 @@ sub dedup {
                while(<$md5sum>) {
                        chomp;
                        my ( $md5, $file ) = split(/\s+/,$_,2);
+                       if ( ! $file ) {
+                               warn "IGNORE $md5 without file\n";
+                               next;
+                       }
                        if ( ! -e "$self->{md5pool}/$md5" ) {
                                warn "MISSING $md5 $file\n";
                                next;