diff options
-rwxr-xr-x[-rw-r--r--] | Makefile.PL | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | lib/MDK/Common.pm.pl | 0 | ||||
-rw-r--r-- | lib/MDK/Common/System.pm | 4 |
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL index 95362f4..95362f4 100644..100755 --- a/Makefile.PL +++ b/Makefile.PL diff --git a/lib/MDK/Common.pm.pl b/lib/MDK/Common.pm.pl index 7a61a60..7a61a60 100644..100755 --- a/lib/MDK/Common.pm.pl +++ b/lib/MDK/Common.pm.pl 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); |