From 1eab1c3ad28f35baf7cadd6e5883018ec6ec7b80 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Wed, 11 Feb 2009 12:11:40 +0900 Subject: Bug#514656: pbuilder: does not handle comments in debian/control correctly Patch from Adeodato Simo. --- pbuilder-satisfydepends-funcs | 1 + 1 file changed, 1 insertion(+) (limited to 'pbuilder-satisfydepends-funcs') diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs index 0e8270c..bdbe0b1 100755 --- a/pbuilder-satisfydepends-funcs +++ b/pbuilder-satisfydepends-funcs @@ -60,6 +60,7 @@ get_control_re() { /^$/ { source=0 } /^Source:/ { source=1 } /^[^ ]*:/ { p=0 } + /^#/ { next } tolower($0) ~ /^'"$re"':/ { p=1 } { if (p && source) { print $0 } }' | sed 's/^[^: ]*://' -- cgit v1.2.3