summaryrefslogtreecommitdiff
path: root/rhimport-dn
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-dn')
-rwxr-xr-xrhimport-dn11
1 files changed, 10 insertions, 1 deletions
diff --git a/rhimport-dn b/rhimport-dn
index ccb774d..4c86bf3 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -50,6 +50,10 @@ binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");
+if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ print "!!!This is the last attempt, there won't be a retry on error!!!\n"
+}
+
my $user = `/usr/bin/id -un`;
$user =~ s/\n//;
my $group = "democracyn";
@@ -123,7 +127,12 @@ for my $entry ($files_feed->entries) {
}
}
if($file eq "" || !(-e "$file")) {
- print "No Entry found from day in qeustion or download error - will retry later\n";
+ print "No Entry found from day in qeustion or download error - ";
+ if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ print "giving up, manual import necessary!!!\n";
+ } else {
+ print "will retry later\n";
+ }
exit 1;
}