summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-06-07 18:53:03 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-06-07 18:53:03 +0000
commitb494ced141262ddbbcb9a504b486562f0df6906d (patch)
tree3eb77d3f1c0a60c8ee097dbf6630dad95a2c2927 /mdkonline.pm
parent8ee3728be0eb3ac7437a53745d47c539bcc50130 (diff)
downloadmgaonline-b494ced141262ddbbcb9a504b486562f0df6906d.tar
mgaonline-b494ced141262ddbbcb9a504b486562f0df6906d.tar.gz
mgaonline-b494ced141262ddbbcb9a504b486562f0df6906d.tar.bz2
mgaonline-b494ced141262ddbbcb9a504b486562f0df6906d.tar.xz
mgaonline-b494ced141262ddbbcb9a504b486562f0df6906d.zip
Merged mdkapplet-extended-maintenance-helper into mdkapplet-add-media-helper.
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index a23eb26a..d3889ed8 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -61,6 +61,7 @@ our @EXPORT_OK = qw(
get_my_mdv_profile
add_medium_powerpack
add_medium_enterprise
+ add_medium_extended
);
our (%config, $product_id, $root);
@@ -246,6 +247,19 @@ sub add_medium_powerpack {
"${uri}updates/$arch");
}
+sub add_medium_extended {
+ my ($email, $password, $version, $arch) = @_;
+ my $uri = sprintf("https://%s:%s\@dl.mandriva.com/extended/%s/%s",
+ uri_escape($email),
+ uri_escape($password),
+ $version,
+ $arch);
+ my @options = (get_urpmi_options(), '--update');
+ run_program::raw(@options,
+ "Extended Maintenance $arch " . int(rand(100000)),
+ ${uri});
+}
+
sub is_running {
my ($name) = @_;
my $found;