aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-05-10 16:19:07 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-05-10 16:19:07 +0000
commit5173ce2f648d4eae528df18453fd858fc68a7478 (patch)
tree08c302a3ba7c7f805044eb44c53b92fa10c09180
parent89d885eab49a6f75c0a6cd93370eb39e72b566f7 (diff)
downloadrpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar
rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar.gz
rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar.bz2
rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.tar.xz
rpmdrake-5173ce2f648d4eae528df18453fd858fc68a7478.zip
Hardcoded release numbers are evil
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 28521b37..e8f0d578 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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) } @_) };