From 1b6b036a2730bb85d633d474263916a387a20e6f Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 3 Aug 2008 11:57:22 -0700 Subject: special-case the 'Conflicts' field in the parser, to get us a list instead of a string --- debian/local/pam-auth-update | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 () { 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$_"; -- cgit v1.2.3