summaryrefslogtreecommitdiff
path: root/rhautoimport-ra
diff options
context:
space:
mode:
Diffstat (limited to 'rhautoimport-ra')
-rwxr-xr-xrhautoimport-ra7
1 files changed, 5 insertions, 2 deletions
diff --git a/rhautoimport-ra b/rhautoimport-ra
index f5780a0..14cbbf0 100755
--- a/rhautoimport-ra
+++ b/rhautoimport-ra
@@ -108,7 +108,10 @@ for my $entry ($feed->entries) {
$uri = new URI::URL($orig_uri);
my @path = $uri->path_components;
$file = $path[-1];
- next unless $bnum eq substr($file, 0, 3);
+ unless($bnum eq substr($file, 0, 3)) {
+ $uri = "";
+ next;
+ }
my $current_file = `cat $STAT_FILE`;
if($current_file eq $file) {
@@ -124,7 +127,7 @@ for my $entry ($feed->entries) {
last;
}
}
- last if $file ne "";
+ last if $uri ne "";
}
if($uri eq "") {
print "No Entry found from $bd - ";