From 15407a1076c484586f9e7e96b3772103ea11ae26 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 27 Jul 2017 18:11:28 +0200 Subject: fix last attempt for pura-vida sounds diff --git a/debian/changelog b/debian/changelog index 637ae35..61a5d5c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +rhautoimport (35-1) unstable; urgency=medium + + * fix last attempt for pura-vida + + -- Christian Pointner Thu, 27 Jul 2017 18:10:52 +0200 + rhautoimport (34-1) unstable; urgency=medium * add importer for pura vida diff --git a/rhautoimport-pv b/rhautoimport-pv index 81d1d8e..d06a885 100755 --- a/rhautoimport-pv +++ b/rhautoimport-pv @@ -46,9 +46,13 @@ binmode(STDIN, ":utf8"); binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8"); +my $curweek = RHRD::utils::get_rd_week(); + if($#ARGV >= 0 && $ARGV[0] eq 'last') { - print "!!!This is the last attempt, there won't be a retry on error!!!\n"; - $LAST_RUN = 1; + if($curweek == 2 || $curweek == 4) { + print "!!!This is the last attempt, there won't be a retry on error!!!\n"; + $LAST_RUN = 1; + } } rhautoimport::report_title_and_last($TITLE, $LAST_RUN); @@ -67,7 +71,6 @@ my $show_id = $allowed_dbs[0]->{'SHOWID'}; my $show_title = $allowed_dbs[0]->{'SHOWTITLE'}; my @today = Date::Calc::Today(); -my $curweek = RHRD::utils::get_rd_week(); my @import_date = Date::Calc::Standard_to_Business(@today); my $dow = $import_date[2]; -- cgit v0.10.2