summaryrefslogtreecommitdiff
path: root/rhautoimport.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rhautoimport.pm')
-rw-r--r--rhautoimport.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhautoimport.pm b/rhautoimport.pm
index c9f577c..4ea0808 100644
--- a/rhautoimport.pm
+++ b/rhautoimport.pm
@@ -68,12 +68,12 @@ sub fetch_parse_rss
$ua->agent($ua_str);
$ua->env_proxy;
my $res = URI::Fetch->fetch($uri, UserAgent => $ua);
- return (undef, URI::Fetch->errstr) unless $res;
- return (undef, "This feed has been permanently removed") if $res->status == URI::Fetch::URI_GONE();
+ return (0, URI::Fetch->errstr) unless $res;
+ return (0, "This feed has been permanently removed") if $res->status == URI::Fetch::URI_GONE();
my $xml = $res->content;
- return XML::Feed->parse(\$xml);
+ return (1, XML::Feed->parse(\$xml));
}
sub check_file_extension