summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 10:17:25 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 10:17:25 +0000
commitbba7ddc91d89b7e3eed80908904822379655fc6f (patch)
tree7590dac26a8573369ccafaf35859168c17dd9ee5 /bin
parentd04cab8a237bacf090f4228042378846f1e0e663 (diff)
downloaddrakguard-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-xbin/drakguard7
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();