summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 15:00:06 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 15:00:06 +0000
commit3ec6a5eca250c09005c371625d206fa40770421f (patch)
tree00d783d8351b2c9d1f11638be35fb7adfe79e4b8 /mdkonline.pm
parent4bbde7988130bf36b0e01f98a2e2b799cd9ffe1a (diff)
downloadmgaonline-3ec6a5eca250c09005c371625d206fa40770421f.tar
mgaonline-3ec6a5eca250c09005c371625d206fa40770421f.tar.gz
mgaonline-3ec6a5eca250c09005c371625d206fa40770421f.tar.bz2
mgaonline-3ec6a5eca250c09005c371625d206fa40770421f.tar.xz
mgaonline-3ec6a5eca250c09005c371625d206fa40770421f.zip
(get_urpmi_options) factorize code
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index eee95bd7..dec9f9d1 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -39,6 +39,7 @@ our @EXPORT = qw(find_current_distro
get_product_id
get_release
get_stale_upgrade_filename
+ get_urpmi_options
is_it_2008_0
is_enterprise_media_supported
is_restricted_media_supported
@@ -170,6 +171,10 @@ sub get_banner {
Gtk2::Banner->new(get_banner_icon(), $o_title || N("Distribution Upgrade"));
}
+sub get_urpmi_options() {
+ ({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--xml-info', 'always');
+}
+
sub is_running {
my ($name) = @_;
my $found;