summaryrefslogtreecommitdiff
path: root/rhimport-dn
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-dn')
-rwxr-xr-xrhimport-dn8
1 files changed, 4 insertions, 4 deletions
diff --git a/rhimport-dn b/rhimport-dn
index 9a1020a..41c980b 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -146,12 +146,13 @@ for my $entry ($files_feed->entries) {
}
}
if($file eq "" || !(-e "$file")) {
- print "No Entry found from day in qeustion or download error - ";
+ print "No Entry found from day in question or download error - ";
if($#ARGV >= 0 && $ARGV[0] eq 'last') {
print "giving up, manual import necessary!!!\n";
} else {
print "will retry later\n";
}
+ $dbh->disconnect();
exit 1;
}
@@ -201,7 +202,7 @@ if( $! != 0) {
print "ok\n";
unlink $infile;
-print "will import $file to dropbox $dropbox (cart=$to_cart)\n\n";
+print "will import $file to dropbox $dropbox (cart=$to_cart)\n";
my $error_cb = sub {
my ($text) = @_;
@@ -213,8 +214,7 @@ my $error_cb = sub {
rhimport::check_key_file() or die "Import Key not found, use rhimport-create-id to create one\n";
my $ret;
-my $log;
-$log = rhimport::clear_carts($dbh, $group, $to_cart);
+my $log = rhimport::clear_carts($dbh, $group, $to_cart);
my $import_log;
($ret, $import_log) = rhimport::import_single($file, $dropbox, $user, 0, $error_cb);
$log .= $import_log;