summaryrefslogtreecommitdiffstats
path: root/lib/MDK/Common/System.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDK/Common/System.pm')
-rw-r--r--lib/MDK/Common/System.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm
index 845f8e0..97d069f 100644
--- a/lib/MDK/Common/System.pm
+++ b/lib/MDK/Common/System.pm
@@ -242,7 +242,9 @@ sub distrib() {
my ($real_system, $real_product) = $release =~ /(.*) release ([\d.]+)/;
my $oem_config = '/etc/sysconfig/oem';
my %oem = -f $oem_config && getVarsFromSh($oem_config);
- my $company = $oem{COMPANY} || 'Mandriva';
+ #- (blino) FIXME: merge with release functions from /usr/lib/libDrakX/common.pm (including product.id parsing)
+ my ($default_company) = split(' ', $real_system);
+ my $company = $oem{COMPANY} || $default_company || 'Unknown vendor';
my $system = $oem{SYSTEM} || $real_system;
my $product = $oem{PRODUCT} || $real_product;
(company => $company, system => $system, product => $product, real_system => $real_system, real_product => $real_product);