summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-04 10:16:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-04 10:16:44 +0000
commitd911fb62181f1f8b6bf2ca500b8838410615055b (patch)
tree12888594f118c18b82971491be5fca49f6ace92e /perl-install/standalone.pm
parent0e0508a31a6fb1a928a601afef41d5f465a8a019 (diff)
downloaddrakx-d911fb62181f1f8b6bf2ca500b8838410615055b.tar
drakx-d911fb62181f1f8b6bf2ca500b8838410615055b.tar.gz
drakx-d911fb62181f1f8b6bf2ca500b8838410615055b.tar.bz2
drakx-d911fb62181f1f8b6bf2ca500b8838410615055b.tar.xz
drakx-d911fb62181f1f8b6bf2ca500b8838410615055b.zip
- use do_pkgs->ensure_is_installed instead of do_pkgs->install where it's easy to do so
- do_pkgs->install won't do anything when $::testing we need a ensure_are_installed we also need to share more package pkgs_interactive code which is hosted in install_any and standalone
Diffstat (limited to 'perl-install/standalone.pm')
-rw-r--r--perl-install/standalone.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm
index 84e9d1b2e..b05301b5f 100644
--- a/perl-install/standalone.pm
+++ b/perl-install/standalone.pm
@@ -164,6 +164,11 @@ sub install {
return 1 if is_installed($o, @l);
+ if ($::testing) {
+ log::l("i would install packages " . join(' ', @l));
+ return 1;
+ }
+
my $wait;
if ($o->{in}->isa('interactive::newt')) {
$o->{in}->suspend;