diff options
author | João Victor Duarte Martins <jvictor@mandriva.com> | 2010-05-30 18:56:35 +0000 |
---|---|---|
committer | João Victor Duarte Martins <jvictor@mandriva.com> | 2010-05-30 18:56:35 +0000 |
commit | cc50d166740d7adf0825fefe5ffbe22f26bb6be8 (patch) | |
tree | 865ec6a68653a9be7469d6db5e06445d6d7d271f /mdkonline.pm | |
parent | ca3293ca9fc558be6366617224c95c2f89699558 (diff) | |
download | mgaonline-cc50d166740d7adf0825fefe5ffbe22f26bb6be8.tar mgaonline-cc50d166740d7adf0825fefe5ffbe22f26bb6be8.tar.gz mgaonline-cc50d166740d7adf0825fefe5ffbe22f26bb6be8.tar.bz2 mgaonline-cc50d166740d7adf0825fefe5ffbe22f26bb6be8.tar.xz mgaonline-cc50d166740d7adf0825fefe5ffbe22f26bb6be8.zip |
* mdkapplet_gui.pm(open_ask_powerpack_dialog): Offers powerpack
upgrade by default only for Powerpack and Flash products. Added a
table widget to hold descriptions for each offered upgrade.
* mdkonline.pm(get_product_info): Was added to centralize product
information (currently description and name).
* NEWS: Updated.
Diffstat (limited to 'mdkonline.pm')
-rw-r--r-- | mdkonline.pm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mdkonline.pm b/mdkonline.pm index 928e3aca..f98e6cfa 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -57,6 +57,7 @@ our @EXPORT = qw(find_current_distro $product_id $root); our @EXPORT_OK = qw( + get_product_info get_my_mdv_profile add_medium_powerpack add_medium_enterprise @@ -183,6 +184,26 @@ sub translate_product { $strings{$product} || $product; } +# TODO Move all product.id handling to a separate module +# (MDV::ProductId?) +sub get_product_info { + my ($product) = @_; + my %info = ( + powerpack => { + name => N("Mandriva PowerPack"), + description => N("The Mandriva Linux distribution with even " . + "more softwares and official support."), + }, + free => { + name => N("Mandiva Free"), + description => N("The 100%% Open Source distribution freely " . + "available."), + }, + ); + $product ||= lc $product_id->{product}; + return $info{$product}; +} + sub get_banner_icon() { find { -e $_ } qw(/usr/share/mcc/themes/default/rpmdrake-mdk.png /usr/share/icons/large/mdkonline.png); |