summaryrefslogtreecommitdiff
path: root/debian/local
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-09-18 01:03:46 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:28 -0800
commitd1e2c2dbee84ce13c3686a8859dd883999312ea1 (patch)
tree17d3dc4f3c59e13c4f128dd1066d84fe9bd03ab6 /debian/local
parent742de85ea6bf7a1ef70b8223697976165bed267a (diff)
fix a bug in the parser that caused error spewing if there were any lines after
the end of the managed block
Diffstat (limited to 'debian/local')
-rwxr-xr-xdebian/local/pam-auth-update4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index c2fd0dda..4c09c657 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -282,6 +282,8 @@ sub create_from_template
} elsif ($state == 2) {
$pattern = '^# and here are more per-package modules \(the "Additional" block\)';
$val = 'Additional';
+ } else {
+ next;
}
if (/$pattern/) {
@@ -380,6 +382,8 @@ sub get_template_md5sum
$pattern = '^# here are the per-package modules \(the "Primary" block\)';
} elsif ($state == 2) {
$pattern = '^# and here are more per-package modules \(the "Additional" block\)';
+ } else {
+ next;
}
if (/$pattern/) {