summaryrefslogtreecommitdiff
path: root/rhautoimport-ra
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-03-13 00:28:50 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-03-13 00:28:50 (GMT)
commit66727097e79e98dc99b7c65105bb941ddf55e934 (patch)
tree9a939e114435183170b729afbf309ef268b5692e /rhautoimport-ra
parent43000f158817e8a5e5578e52598b6e28d64515b8 (diff)
added special return code for non-imports which shouldn't give an error
Diffstat (limited to 'rhautoimport-ra')
-rwxr-xr-xrhautoimport-ra4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhautoimport-ra b/rhautoimport-ra
index 14cbbf0..938749e 100755
--- a/rhautoimport-ra
+++ b/rhautoimport-ra
@@ -116,7 +116,7 @@ for my $entry ($feed->entries) {
my $current_file = `cat $STAT_FILE`;
if($current_file eq $file) {
print "Already downloaded file of today\n";
- exit 0;
+ exit 42;
}
if(!rhautoimport::check_file_extension($file)) {
print "\n\nThe extension of the matching file '". $file . "' seems to be wrong - manual import necessary!!!\n";
@@ -163,7 +163,7 @@ if($ret == 0) {
print "\nImport Error:\n\n";
print $log;
print "\n\nNot adding PV note!!";
- exit 1;
+ print "\n\nSince the import for the regular broadcast went through we will not retry this import!!!";
}
} else {
print "\nImport Error:\n\n";