diff options
Diffstat (limited to 'mdkonline.pm')
-rw-r--r-- | mdkonline.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkonline.pm b/mdkonline.pm index a5869e59..fd2369ba 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -134,9 +134,10 @@ sub header { " * $_[0] ********************************************************************************"; } +my $releasefile = find { -f $_ } '/etc/mandrakelinux-release', '/etc/mandrake-release', '/etc/redhat-release'; output($file, map { chomp; "$_\n" } header("rpm -qa"), join('', sort `rpm -qa`), - header("mandrake version"), cat_('/etc/mandrakelinux-release')); + header("mandrake version"), cat_($releasefile)); system("/usr/bin/bzip2 -f $file"); open(my $F, $file . ".bz2") or die "Cannot open file : $!"; my ($chunk, $buffer); |