summaryrefslogtreecommitdiff
path: root/debian/local/pam-auth-update
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-03 11:57:22 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:23 -0800
commit1b6b036a2730bb85d633d474263916a387a20e6f (patch)
tree0b447e851834438ac48d4b7dca46febec4776794 /debian/local/pam-auth-update
parent395c04e70974ffc3718903f5a75d269bdb0e8ee0 (diff)
special-case the 'Conflicts' field in the parser, to get us a list instead of
a string
Diffstat (limited to 'debian/local/pam-auth-update')
-rwxr-xr-xdebian/local/pam-auth-update6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 4f41f264..bbb1a876 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -69,7 +69,11 @@ sub parse_pam_profile
while (<PROFILE>) {
if (/^(\S+):\s+(.*)$/) {
$fieldname = $1;
- $profile{$1} = $2;
+ if ($fieldname eq 'Conflicts') {
+ @{$profile{1}} = split(/, /, $2);
+ } else {
+ $profile{$1} = $2;
+ }
} else {
chomp;
$profile{$fieldname} .= "\n$_";