diff options
Diffstat (limited to 'rhautoimport-btl')
-rwxr-xr-x | rhautoimport-btl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rhautoimport-btl b/rhautoimport-btl index 87ad7c7..1e2e7cc 100755 --- a/rhautoimport-btl +++ b/rhautoimport-btl @@ -38,6 +38,7 @@ my $STAT_FILE = $ENV{'HOME'} . "/rhautoimport-btl.stat"; my $RSS_URL = "http://www.btlonline.org/rss/btl128.xml"; my $RD_GROUP = "betweenlin"; my $PV_ID = '221'; +my $LAST_RUN = 0; my $curweek = RHRD::utils::get_rd_week(); if($curweek == 2 || $curweek == 4) { @@ -46,7 +47,8 @@ if($curweek == 2 || $curweek == 4) { } if($#ARGV >= 0 && $ARGV[0] eq 'last') { - print "!!!This is the last attempt, there won't be a retry on error!!!\n" + print "!!!This is the last attempt, there won't be a retry on error!!!\n"; + $LAST_RUN = 1; } @@ -120,7 +122,7 @@ for my $entry ($feed->entries) { } if($uri eq "") { print "No Entry found for " . Date::Calc::Date_to_Text(@broadcast_date) . " - "; - if($#ARGV >= 0 && $ARGV[0] eq 'last') { + if($LAST_RUN) { print "giving up, manual import necessary!!!\n"; } else { print "will retry later\n"; |