summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/scannerdrake
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2004-02-24 02:01:58 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2004-02-24 02:01:58 +0000
commit860d4a0b31cc57542642c27e0cc1e3c85756c468 (patch)
treed9a08b20a5304000721a5b5135cd1ee15434f8d9 /perl-install/standalone/scannerdrake
parent2d7bc830c9a8c6dd57f4e319ced8537a95b8f830 (diff)
downloaddrakx-860d4a0b31cc57542642c27e0cc1e3c85756c468.tar
drakx-860d4a0b31cc57542642c27e0cc1e3c85756c468.tar.gz
drakx-860d4a0b31cc57542642c27e0cc1e3c85756c468.tar.bz2
drakx-860d4a0b31cc57542642c27e0cc1e3c85756c468.tar.xz
drakx-860d4a0b31cc57542642c27e0cc1e3c85756c468.zip
Ask user before installing packages.
Diffstat (limited to 'perl-install/standalone/scannerdrake')
-rwxr-xr-xperl-install/standalone/scannerdrake14
1 files changed, 13 insertions, 1 deletions
diff --git a/perl-install/standalone/scannerdrake b/perl-install/standalone/scannerdrake
index e925a97c6..a6d13602e 100755
--- a/perl-install/standalone/scannerdrake
+++ b/perl-install/standalone/scannerdrake
@@ -46,6 +46,13 @@ if (!files_exist('/usr/bin/scanimage',
'/usr/bin/xsane',
if_(files_exist("/usr/bin/gimp"),
"/usr/lib/gimp/1.2/plug-ins/xsane"))) {
+ if (!$in->ask_yesorno(N("Warning"), N("SANE packages need to be installed to use scanners.
+
+Do you want to install the SANE packages?"))) {
+ $in->ask_warn("Scannerdrake",
+ N("Aborting Scannerdrake."));
+ exit 0;
+ }
if (!$in->do_pkgs->install('sane-backends', 'xsane',
if_($in->do_pkgs->is_installed('gimp'),
'xsane-gimp'))) {
@@ -898,7 +905,12 @@ sub sharewindow {
# running
if (!files_exist('/usr/sbin/xinetd',
'/usr/sbin/saned')) {
- if (!$in->do_pkgs->install('xinetd', 'saned')) {
+ if (!$in->ask_yesorno(N("Warning"), N("saned needs to be installed to share the local scanner(s).
+
+Do you want to install the saned package?"))) {
+ $in->ask_warn("Scannerdrake",
+ N("Your scanner(s) will not be available on the network."));
+ } elsif (!$in->do_pkgs->install('xinetd', 'saned')) {
$in->ask_warn(N("Error"),
N("Could not install the packages needed to share your scanner(s).") . " " .
N("Your scanner(s) will not be available on the network."));