]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/pakfire/lib/functions.pl
pakfire: Don't give up mirror search on status code 500
[people/pmueller/ipfire-2.x.git] / src / pakfire / lib / functions.pl
index 4ed70308c9c2b8c5fbfa65db4dabd57ffdfe18a8..e623e8bc3f3fcb5937e7d59e4d6c63745fee6a58 100644 (file)
@@ -205,11 +205,6 @@ sub fetchfile {
                my $log = $response->status_line;
                logger("DOWNLOAD INFO: HTTP-Status-Code: $code - $log");
 
-               if ( $code eq "500" ) {
-                       message("Giving up: There was no chance to get the file \"$getfile\" from any available server.\nThere was an error on the way. Please fix it.");
-                       return 0;
-               }
-
                if ($response->is_success) {
                        if (open(FILE, ">$Conf::tmpdir/$bfile")) {
                                print FILE $final_data;