diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-13 22:20:09 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-13 22:20:09 (GMT) |
commit | 6a9d9b09f2e69e2c86ab63945b6b04276cbc5d95 (patch) | |
tree | 9c4698f8b6ac3a820270e2987104184ef8e5bbbe /rhautoimport-oi | |
parent | b2c6e4a42ada276356f94f78fd80302694d50af6 (diff) |
fixed last run arguments
Diffstat (limited to 'rhautoimport-oi')
-rwxr-xr-x | rhautoimport-oi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rhautoimport-oi b/rhautoimport-oi index a261055..ac3ea89 100755 --- a/rhautoimport-oi +++ b/rhautoimport-oi @@ -39,6 +39,7 @@ my $LAST_FILE = $ENV{'HOME'} . "/rhautoimport-oi.last"; my $RSS_URL = "http://npla.de/onda/feed/serie=3"; my $RD_GROUP = "ondainfo"; my $PV_ID = '220'; +my $LAST_RUN = 0; my $curweek = RHRD::utils::get_rd_week(); if($curweek == 1 || $curweek == 3) { @@ -47,7 +48,8 @@ if($curweek == 1 || $curweek == 3) { } 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; } @@ -121,7 +123,7 @@ for my $entry ($feed->entries) { } if($uri eq "") { print "No Entry found with #" . $broadcast_num . " - "; - if($#ARGV >= 0 && $ARGV[0] eq 'last') { + if($LAST_RUN) { print "giving up, manual import necessary!!!\n"; } else { print "will retry later\n"; |