diff options
author | Steve Langasek <vorlon@debian.org> | 2008-08-03 11:57:22 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:23 -0800 |
commit | 1b6b036a2730bb85d633d474263916a387a20e6f (patch) | |
tree | 0b447e851834438ac48d4b7dca46febec4776794 /debian/local/pam-auth-update | |
parent | 395c04e70974ffc3718903f5a75d269bdb0e8ee0 (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-x | debian/local/pam-auth-update | 6 |
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$_"; |