diff options
Diffstat (limited to 'debian/local/pam-auth-update')
-rwxr-xr-x | debian/local/pam-auth-update | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update index d3e68e0c..bac94349 100755 --- a/debian/local/pam-auth-update +++ b/debian/local/pam-auth-update @@ -38,6 +38,7 @@ my $confdir = '/etc/pam.d'; my $savedir = '/var/lib/pam'; my (%profiles, @sorted, @enabled, @conflicts); my $force = 0; +my $priority = 'high'; opendir(DIR, $inputdir) || die "could not open config directory: $!"; while (my $profile = readdir(DIR)) { @@ -59,6 +60,8 @@ while ($#ARGV >= 0) { my $opt = shift; if ($opt eq '--force') { $force = 1; + } elsif ($opt eq '--package') { + $priority = 'medium'; } } @@ -127,9 +130,7 @@ do { } if (@conflicts) { subst($errtemplate, 'conflicts', join("\n", @conflicts)); - # FIXME: we don't want this to always be 'high', only when - # called by the user - input('high',$errtemplate); + input($priority,$errtemplate); } fset($template,'seen','false'); set($template, join(', ', @enabled)); |