Permalink
Browse files

fixed not CPAN module problem (reported by gfx++)

  • Loading branch information...
1 parent b905dd8 commit f53ffeba993b38b4727d8f05e726951192f8814d @xaicron committed Nov 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/App/pmuninstall.pm
View
@@ -357,7 +357,8 @@ sub fetch {
my ($self, $url) = @_;
$self->puts("-> Getting from $url") if $self->{verbose};
my $res = HTTP::Tiny->new->get($url);
- die "[$res->{status}] fetch $url failed!!\n" if !$res->{success} && $res->{status} != 404;
+ return if $res->{status} == 404;
+ die "[$res->{status}] fetch $url failed!!\n" if !$res->{success};
return $res->{content};
}

0 comments on commit f53ffeb

Please sign in to comment.