diff options
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 34f4c9139..f7bac3580 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -10,11 +10,21 @@ use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK); ); @EXPORT_OK = map { @$_ } values %EXPORT_TAGS; -use common qw(:system); +use common qw(:common :system); use log; 1; +sub fileInBase { member($_[0], qw(hdlist comps)); } + +sub imageGetFile { + fileInBase($_[0]) and return "/tmp/rhimage/Mandrake/base/$_[0]"; + my $f = "/tmp/rhimage/Mandrake/RPMS/$_[0]"; + -r $f and return $f; + $f =~ s/i386/i586/; + $f; +} + sub versionString { my $kernel = $::o->{packages}->{kernel} or die "I couldn't find the kernel package!"; |