summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm21
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);