summaryrefslogtreecommitdiff
path: root/rhautoimport-oi
diff options
context:
space:
mode:
Diffstat (limited to 'rhautoimport-oi')
-rwxr-xr-xrhautoimport-oi6
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";