[debsums] 02/04: Fix combination of empty .md5sums file and --root
Axel Beckert
abe at deuxchevaux.org
Thu Mar 26 02:37:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository debsums.
commit 1e1294d7b8ef65ca00685253d3f56447a7e79d4c
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Thu Mar 26 03:24:44 2015 +0100
Fix combination of empty .md5sums file and --root
Found by the check added in the previous commit. Yay!
---
debsums | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debsums b/debsums
index 80c5325..a1f1d40 100755
--- a/debsums
+++ b/debsums
@@ -351,7 +351,7 @@ sub md5sums_path
my $found_a_file = 0;
while (my $line = <$lffd>) {
chomp($line);
- next if -l $line;
+ next if -l "$root$line";
next if -d _;
if (-f _) {
warn "$path is empty but shouldn't!\n";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git
More information about the Pkg-perl-cvs-commits
mailing list