aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2009-02-11 12:11:40 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2009-02-11 12:11:40 +0900
commit1eab1c3ad28f35baf7cadd6e5883018ec6ec7b80 (patch)
treea8ec1404e16561edd439e35e7d1bca5731a8f77d /pbuilder-satisfydepends-funcs
parent81a5ec1b474c16438daa93e634c911b695d2888f (diff)
downloadpbuilder-1eab1c3ad28f35baf7cadd6e5883018ec6ec7b80.tar
pbuilder-1eab1c3ad28f35baf7cadd6e5883018ec6ec7b80.tar.gz
Bug#514656: pbuilder: does not handle comments in debian/control correctly
Patch from Adeodato Simo.
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-xpbuilder-satisfydepends-funcs1
1 files changed, 1 insertions, 0 deletions
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/^[^: ]*://'