summaryrefslogtreecommitdiff
path: root/rhautoimport-dn
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-dn
parent43000f158817e8a5e5578e52598b6e28d64515b8 (diff)
added special return code for non-imports which shouldn't give an error
Diffstat (limited to 'rhautoimport-dn')
-rwxr-xr-xrhautoimport-dn4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhautoimport-dn b/rhautoimport-dn
index 0feafdb..3bb0e58 100755
--- a/rhautoimport-dn
+++ b/rhautoimport-dn
@@ -79,7 +79,7 @@ for my $href ( @allowed_dbs ) {
if($show_id < 0) {
print "no dropbox for day in question\n";
- exit 0;
+ exit 42;
}
my $y = sprintf("%04d-%02d-%02d", @broadcast_day);
@@ -107,7 +107,7 @@ for my $entry ($files_feed->entries) {
my $current_file = `cat $STAT_FILE`;
if($current_file eq $path[-1]) {
print "Already downloaded file of day in question\n";
- exit 0;
+ exit 42;
}
$file = $path[-1];
if(!rhautoimport::check_file_extension($file)) {