summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/common.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index e5a1a6693..36628d900 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -237,9 +237,11 @@ sub set_permissions {
sub release_file {
my ($o_dir) = @_;
- find { -r "$o_dir$_" }
- map { ("/root/drakx/$_.upgrading", "/etc/$_") }
- 'mandrakelinux-release', 'mandrake-release', 'conectiva-release', 'release', 'redhat-release';
+ my @names = ('mandrakelinux-release', 'mandrake-release', 'conectiva-release', 'release', 'redhat-release');
+ find { -r "$o_dir$_" } (
+ (map { "/root/drakx/$_.upgrading" } @names),
+ (map { "/etc/$_" } @names),
+ );
}
sub mandrake_release {