summaryrefslogtreecommitdiff
path: root/rhautoimport-ra
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-03-13 22:20:09 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-03-13 22:20:09 (GMT)
commit6a9d9b09f2e69e2c86ab63945b6b04276cbc5d95 (patch)
tree9c4698f8b6ac3a820270e2987104184ef8e5bbbe /rhautoimport-ra
parentb2c6e4a42ada276356f94f78fd80302694d50af6 (diff)
fixed last run arguments
Diffstat (limited to 'rhautoimport-ra')
-rwxr-xr-xrhautoimport-ra6
1 files changed, 4 insertions, 2 deletions
diff --git a/rhautoimport-ra b/rhautoimport-ra
index 938749e..0710a62 100755
--- a/rhautoimport-ra
+++ b/rhautoimport-ra
@@ -38,9 +38,11 @@ my $RSS_URL = "http://cba.fro.at/seriesrss/262430?c=Kfs2IoV2Wmd";
$XML::Feed::MULTIPLE_ENCLOSURES=1;
my $RD_GROUP = "RadioATTAC";
my $PV_ID = '76';
+my $LAST_RUN = 0;
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;
}
@@ -131,7 +133,7 @@ for my $entry ($feed->entries) {
}
if($uri eq "") {
print "No Entry found from $bd - ";
- if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ if($LAST_RUN) {
print "giving up, manual import necessary!!!\n";
} else {
print "will retry later\n";