Commit a59db4fc authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Fixed debianizing of files with spaces failed md5

parent 65ae4c74
......@@ -94,13 +94,19 @@ sub create_md5sums {
unlink "$DEBIAN/md5sums";
open my $md5sum,'>>',"$DEBIAN/md5sums" or die $!;
open my $find, ,'-|', 'find . -type f -printf \'%P\n\'' or die $!;
while (<$find>) {
next if /^debian/i;
print `md5sum $_ >> $DEBIAN/md5sums`
my @cmd = ('md5sum',$_);
my ($in,$out,$err);
run3(\@cmd, \$in, \$out, \$err);
print $md5sum $out;
close $find;
close $md5sum;
chdir "..";
chmod 0644,"$DIR_DST/$DEBIAN/md5sums" or die "$! $DIR_DST/$DEBIAN/md5sums";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment