summaryrefslogtreecommitdiffstats
path: root/perl-install/do_pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/do_pkgs.pm')
-rw-r--r--perl-install/do_pkgs.pm17
1 files changed, 10 insertions, 7 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index baf96b7f0..bbcacb620 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -1,4 +1,12 @@
package do_pkgs; # $Id$
+
+sub do_pkgs {
+ my ($in) = @_;
+ ($::isInstall ? 'do_pkgs_during_install' : 'do_pkgs_standalone')->new($in);
+}
+
+################################################################################
+package do_pkgs_common;
use common;
sub new {
@@ -6,11 +14,6 @@ sub new {
bless { in => $in }, $type;
}
-sub vnew {
- my ($_type, $in) = @_;
- ($::isInstall ? 'do_pkgs_during_install' : 'do_pkgs_standalone')->new($in);
-}
-
sub ensure_is_installed {
my ($do, $pkg, $file, $b_auto) = @_;
@@ -36,7 +39,7 @@ package do_pkgs_during_install;
use run_program;
use common;
-our @ISA = qw(do_pkgs);
+our @ISA = qw(do_pkgs_common);
sub new {
my ($type, $in) = @_;
@@ -118,7 +121,7 @@ use run_program;
use common;
use log;
-our @ISA = qw(do_pkgs);
+our @ISA = qw(do_pkgs_common);
sub install {
my ($do, @l) = @_;