summaryrefslogtreecommitdiff
path: root/rhautoimport-nw
diff options
context:
space:
mode:
Diffstat (limited to 'rhautoimport-nw')
-rwxr-xr-xrhautoimport-nw7
1 files changed, 5 insertions, 2 deletions
diff --git a/rhautoimport-nw b/rhautoimport-nw
index 2fbc9c8..e8f7dd0 100755
--- a/rhautoimport-nw
+++ b/rhautoimport-nw
@@ -103,7 +103,10 @@ for my $entry ($feed->entries) {
$uri = new URI::URL($orig_uri);
my @path = $uri->path_components;
$file = $path[-1];
- next unless (uc($file) =~ $bdfile); # file not from correct day
+ unless(uc($file) =~ $bdfile) { # file not from correct day
+ $uri = "";
+ next;
+ }
my $current_file = `cat $STAT_FILE`;
if($current_file eq $file) {
@@ -121,7 +124,7 @@ for my $entry ($feed->entries) {
last;
}
}
- last if $file ne "";
+ last if $uri ne "";
}
if($uri eq "") {
print "No Entry found from $bd - ";