diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-10 16:19:07 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-10 16:19:07 +0000 |
commit | 5173ce2f648d4eae528df18453fd858fc68a7478 (patch) | |
tree | 08c302a3ba7c7f805044eb44c53b92fa10c09180 | |
parent | 89d885eab49a6f75c0a6cd93370eb39e72b566f7 (diff) | |
download | rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar.gz rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar.bz2 rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar.xz rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.zip |
Hardcoded release numbers are evil
-rwxr-xr-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -400,7 +400,8 @@ sub run_treeview_dialog { my (undef, $size_free) = MDK::Common::System::df('/usr'); $::noBorder = 1; - $w = ugtk2->new(N("Rpmdrake %s", "10.0")); + (my $mdk_version) = (cat_('/etc/mandrake-release') || '') =~ /(\d+\.\d+)/; + $w = ugtk2->new(N("Rpmdrake %s", $mdk_version || '')); $::noBorder = 0; my $formatlistpkg = sub { myformatList(sort { uc($a) cmp uc($b) } @_) }; |