[debsums] 163/184: Fix filling of $correct_package by adding a leading slash

Axel Beckert abe at deuxchevaux.org
Mon Mar 2 21:21:29 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 6d6e004dbe4f3ef86e9c48860d00d62a86f7b293
Author: Marek Veber <Marek.Veber at solnet.cz>
Date:   Wed Jan 14 23:20:04 2015 +0100

    Fix filling of $correct_package by adding a leading slash
---
 debsums | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debsums b/debsums
index edea289..c026575 100755
--- a/debsums
+++ b/debsums
@@ -462,7 +462,7 @@ sub is_localepurge_file {
 	    return 0;
 	}
 
-	my $correct_package = `dpkg-query "--admindir=$DPKG" -S "$path" | awk -F: '{print \$1}'`;
+	my $correct_package = `dpkg-query "--admindir=$DPKG" -S "/$path" | awk -F: '{print \$1}'`;
 	chomp($correct_package);
 	if ($pack ne $correct_package) {
 	    #print "$pack != $correct_package\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