summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-12-22 22:58:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-12-22 22:58:30 +0000
commit3e93c988ffc48e16a3bec99e7c737c859e561610 (patch)
treee70431009c38111af8f9369c79e24c181dfb9e7a /perl-install/bootloader.pm
parent220cf5fc0acde9524227e2c5443fd5892b5dafa1 (diff)
downloaddrakx-backup-do-not-use-3e93c988ffc48e16a3bec99e7c737c859e561610.tar
drakx-backup-do-not-use-3e93c988ffc48e16a3bec99e7c737c859e561610.tar.gz
drakx-backup-do-not-use-3e93c988ffc48e16a3bec99e7c737c859e561610.tar.bz2
drakx-backup-do-not-use-3e93c988ffc48e16a3bec99e7c737c859e561610.tar.xz
drakx-backup-do-not-use-3e93c988ffc48e16a3bec99e7c737c859e561610.zip
s/use pkgs/require pkgs/ since pkgs::versionCompare is only used during install
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 2241e61a9..836a96506 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -11,7 +11,6 @@ use common;
use partition_table qw(:types);
use log;
use any;
-use pkgs;
use fsedit;
use devices;
use loopback;
@@ -236,6 +235,7 @@ sub get_kernels_and_labels {
my @prefered = ('', 'secure', 'enterprise', 'smp');
my %weights = map_index { $_ => $::i } @prefered;
+ require pkgs;
@kernels =
sort { pkgs::versionCompare($b->[1], $a->[1]) || $weights{$a->[2]} <=> $weights{$b->[2]} }
map {