diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-27 10:17:25 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-27 10:17:25 +0000 |
commit | bba7ddc91d89b7e3eed80908904822379655fc6f (patch) | |
tree | 7590dac26a8573369ccafaf35859168c17dd9ee5 /bin | |
parent | d04cab8a237bacf090f4228042378846f1e0e663 (diff) | |
download | drakguard-bba7ddc91d89b7e3eed80908904822379655fc6f.tar drakguard-bba7ddc91d89b7e3eed80908904822379655fc6f.tar.gz drakguard-bba7ddc91d89b7e3eed80908904822379655fc6f.tar.bz2 drakguard-bba7ddc91d89b7e3eed80908904822379655fc6f.tar.xz drakguard-bba7ddc91d89b7e3eed80908904822379655fc6f.zip |
ask only one time to install packages (suggested by pterjan)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/drakguard | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/drakguard b/bin/drakguard index e83b8cc..ba5bd94 100755 --- a/bin/drakguard +++ b/bin/drakguard @@ -195,11 +195,8 @@ sub save() { my $guardian_port = 8080; my $guardian_user = 'dansguardian'; - $enable && - $in->do_pkgs->ensure_binary_is_installed('shorewall', 'shorewall') && - $in->do_pkgs->ensure_is_installed('squid', '/usr/sbin/squid') && - $in->do_pkgs->ensure_is_installed('dansguardian', '/usr/sbin/dansguardian') - or quit_gui(); + $enable && $in->do_pkgs->ensure_are_installed([ qw(shorewall squid dansguardian) ]) + or quit_gui(); $_->{apply}(map { $_->[0] } @{$_->{list}{data}}) foreach @url_lists; write_dansguardian(); |