summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-04 15:49:52 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-04 15:49:52 +0000
commit0fa594b28ca9a6893b9bf7fd9066912cb1a8028b (patch)
tree9c934d8fd57569caab3eb0858b7f5c4102e7b1f9 /mdkapplet
parent7c509d0e73cfca5230d99d262a8989f263c5660c (diff)
downloadmgaonline-0fa594b28ca9a6893b9bf7fd9066912cb1a8028b.tar
mgaonline-0fa594b28ca9a6893b9bf7fd9066912cb1a8028b.tar.gz
mgaonline-0fa594b28ca9a6893b9bf7fd9066912cb1a8028b.tar.bz2
mgaonline-0fa594b28ca9a6893b9bf7fd9066912cb1a8028b.tar.xz
mgaonline-0fa594b28ca9a6893b9bf7fd9066912cb1a8028b.zip
(is_there_a_new_distributions) add sanity check for cooker
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 6 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 0046ec1f..8f3d7cef 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -261,6 +261,12 @@ sub is_there_a_new_distributions() {
my $list = "http://api.mandriva.com/distributions/$type.$product_id->{arch}.list?product=$product_id->{product}";
log::explanations("trying distributions list from $list");
+ # sanity check for cooker:
+ if ($product_id->{branch} eq 'Devel') {
+ log::explanations("devel distribution is not supported");
+ return;
+ }
+
my @lines = eval {
my $urpm = Rpmdrake::open_db::fast_open_urpmi_db();
urpm::download::get_content($urpm, $list);