summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-26 15:45:57 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-26 15:45:57 +0000
commit90061efdc5e8f6bdd0858bf2405e9a53b7f65a0e (patch)
treeada79e605bd50b8df66b81a2067638a76beaac8d /mdkapplet
parent8fd39a2250f28727c68367f4cc59fade2ab22c3f (diff)
downloadmgaonline-90061efdc5e8f6bdd0858bf2405e9a53b7f65a0e.tar
mgaonline-90061efdc5e8f6bdd0858bf2405e9a53b7f65a0e.tar.gz
mgaonline-90061efdc5e8f6bdd0858bf2405e9a53b7f65a0e.tar.bz2
mgaonline-90061efdc5e8f6bdd0858bf2405e9a53b7f65a0e.tar.xz
mgaonline-90061efdc5e8f6bdd0858bf2405e9a53b7f65a0e.zip
(is_enterprise_media_supported, is_restricted_media_supported) move
them into shared module (needed for next commits)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 1a6eb0af..459851dd 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -607,7 +607,7 @@ sub silentCheck() {
if (!@update_medias) {
get_product_id();
- if ($product_id->{type} eq 'Enterprise' && $product_id->{product} eq 'Server') {
+ if (is_enterprise_media_supported()) {
checker_exit('no_enterprise_update_medium');
} else {
checker_exit('no_update_medium');
@@ -811,7 +811,7 @@ sub get_enabled_restricted_media {
sub is_restricted_media_configured {
my ($urpm) = @_;
get_product_id();
- return 1 if $product_id->{product} !~ /powerpack/i;
+ return 1 if !is_restricted_media_supported();
my @restricted_media = get_enabled_restricted_media($urpm);
my @names = map { $_->{name} } @restricted_media;