summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ChangeLog2
-rw-r--r--perl-install/install_any.pm2
2 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/ChangeLog b/perl-install/ChangeLog
index 660c7a340..f95282ea0 100644
--- a/perl-install/ChangeLog
+++ b/perl-install/ChangeLog
@@ -10,6 +10,8 @@
* diskdrake.pm: adding a cylinder for the minimum of the resize
and if there is nothing to do for resize, simply return.
+ * install_any.pm: added missing require pkgs.
+
2000-10-02 Pixel <pixel@mandrakesoft.com>
* any.pm (addUsers): grpuser output goes to Mr Dave
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 982ba85a4..18ac6754f 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -197,6 +197,7 @@ sub kernelVersion {
my ($o) = @_;
local $_ = readlink("$::o->{prefix}/boot/vmlinuz") and return first(/vmlinuz-(.*)/);
+ require pkgs;
my $p = pkgs::packageByName($o->{packages}, "kernel") or die "I couldn't find the kernel package!";
pkgs::packageVersion($p) . "-" . pkgs::packageRelease($p);
}
@@ -530,6 +531,7 @@ sub g_auto_install(;$) {
my ($f) = @_; $f ||= auto_inst_file;
my $o = {};
+ require pkgs;
$o->{default_packages} = [ map { pkgs::packageName($_) } grep { pkgs::packageFlagSelected($_) && !pkgs::packageFlagBase($_) } values %{$::o->{packages}[0]} ];
my @fields = qw(mntpoint type size);