diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-07-17 16:45:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-07-17 16:45:33 +0000 |
commit | deddef1f4746139ed4ef994d8f053bf39d4d6384 (patch) | |
tree | 1b2ce28fc88f3b55e7dae2af56782ee6c849d775 /perl-install/install_any.pm | |
parent | 9f8734e27c9a88137a2933970b7a5962e37789da (diff) | |
download | drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar.gz drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar.bz2 drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.tar.xz drakx-backup-do-not-use-deddef1f4746139ed4ef994d8f053bf39d4d6384.zip |
*** empty log message ***
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!"; |