projects
/
cloudstore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't die on md5sum without filename
[cloudstore.git]
/
lib
/
CloudStore
/
Store.pm
diff --git
a/lib/CloudStore/Store.pm
b/lib/CloudStore/Store.pm
index
37a1ecb
..
1956a73
100644
(file)
--- a/
lib/CloudStore/Store.pm
+++ b/
lib/CloudStore/Store.pm
@@
-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;