diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-04-21 15:17:42 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-04-21 15:17:42 +0000 |
commit | a2c392a9ab83bb9031fb11f99f0101f1f2d9f140 (patch) | |
tree | 1bc35118fda9f112ee69eaeb980759f545691f19 /perl-install/install_any.pm | |
parent | e18ed6c2b514483604e2ca6bd35923a0371b86ab (diff) | |
download | drakx-a2c392a9ab83bb9031fb11f99f0101f1f2d9f140.tar drakx-a2c392a9ab83bb9031fb11f99f0101f1f2d9f140.tar.gz drakx-a2c392a9ab83bb9031fb11f99f0101f1f2d9f140.tar.bz2 drakx-a2c392a9ab83bb9031fb11f99f0101f1f2d9f140.tar.xz drakx-a2c392a9ab83bb9031fb11f99f0101f1f2d9f140.zip |
create common::release_file() and use it
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index b8e41a9bd..a72d32c54 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -1471,9 +1471,8 @@ sub find_root_parts { my ($fstab, $prefix) = @_; map { my $handle = any::inspect($_, $prefix); - my $f = $handle && (find { -f $_ } map { "$handle->{dir}/etc/$_" } 'mandrakelinux-release', 'mandrake-release', 'redhat-release'); - if ($f) { - my $s = cat_($f); + if (my $f = $handle && common::release_file($handle->{dir})) { + my $s = cat_("$handle->{dir}$f"); chomp($s); $s =~ s/\s+for\s+\S+//; log::l("find_root_parts found $_->{device}: $s"); |