summaryrefslogtreecommitdiff
path: root/rhautoimport-fl
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-10 12:02:02 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-10 12:02:02 (GMT)
commit36edbc5062ef0f6b1d77e0b2aa3d5f806e85d8e3 (patch)
tree3e4aad64064caeffa4b0d59cd6c9c6894962bdb9 /rhautoimport-fl
parentd4d9fdd5dfd24a49ad68c1aa2da037b019244112 (diff)
fixed last imported date in leitwolf importer
Diffstat (limited to 'rhautoimport-fl')
-rwxr-xr-xrhautoimport-fl4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhautoimport-fl b/rhautoimport-fl
index 8044b2d..368dc8f 100755
--- a/rhautoimport-fl
+++ b/rhautoimport-fl
@@ -118,6 +118,7 @@ my $uri = "";
my $file = "";
my $sum_title = "";
my $sum_text = "";
+my $this_broadcast = $last_broadcast;
my $i = 0;
for my $entry ($feed->entries) {
@@ -152,6 +153,7 @@ for my $entry ($feed->entries) {
exit 1;
}
+ $this_broadcast = $idt;
last;
}
}
@@ -204,7 +206,7 @@ close($fhs);
unlink($LAST_FILE);
open($fhs, '>', $LAST_FILE);
-print $fhs $last_broadcast->iso8601();
+print $fhs $this_broadcast->iso8601();
close($fhs);
exit $exit_code;