summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:35 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:35 +0000
commitf793795d1286f3e7248bd65a6edc0b48b41fc7e7 (patch)
tree3f3a271bd8ef55440b0947f3269d54111cefd0b8 /mdkonline.pm
parenta08b382fcd9a1a63d7f4273ca7a37a6c1143076d (diff)
downloadmgaonline-f793795d1286f3e7248bd65a6edc0b48b41fc7e7.tar
mgaonline-f793795d1286f3e7248bd65a6edc0b48b41fc7e7.tar.gz
mgaonline-f793795d1286f3e7248bd65a6edc0b48b41fc7e7.tar.bz2
mgaonline-f793795d1286f3e7248bd65a6edc0b48b41fc7e7.tar.xz
mgaonline-f793795d1286f3e7248bd65a6edc0b48b41fc7e7.zip
(read_config) share code
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index 6378ccca..4b5b1856 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -43,6 +43,7 @@ our @EXPORT = qw(find_current_distro
is_enterprise_media_supported
is_extmaint_supported
is_restricted_media_supported
+ read_config
translate_product
xml2perl
%config
@@ -56,6 +57,9 @@ use log;
my $release_file = find { -f $_ } '/etc/mandriva-release', '/etc/mandrakelinux-release', '/etc/mandrake-release', '/etc/redhat-release';
+sub read_config() {
+ %config = getVarsFromSh('/etc/sysconfig/mdkapplet');
+}
sub get_stale_upgrade_filename() {
'/var/lib/urpmi/stale_upgrade_in_progress';