Changeset 1253 in ProjectBuilder for devel/rpmbootstrap/bin/rpmbootstrap


Ignore:
Timestamp:
Mar 11, 2011, 8:58:41 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Try to be more error proof when issues with repository download
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/rpmbootstrap/bin/rpmbootstrap

    r1181 r1253  
    279279    while ($found == 0) {
    280280        $response1 = $ua->get("$repo/repodata");
     281        pb_log(2,"REPO analyzed: $repo\n");
    281282        if (! $response1->is_success) {
    282283            $repo = dirname($repo);
    283284
    284             pb_log(2,"REPO analyzed: $repo\n");
    285285            # There is a limit to the loop, when / is reached and nothing found
    286286            my ($scheme, $account, $host, $port, $path) = pb_get_uri($repo);
    287             die "Unable to find the repodata structure of the mirror $mirror\nPlease check the URL or warn the dev team.\n" if ($path =~ /^[\/]+$/);
     287            die "Unable to find the repodata structure of the mirror $mirror\nPlease check the URL or warn the dev team.\n" if (($path =~ /^[\/]+$/) || ($path =~ /^$/));
    288288       
    289289            # / not reached, so looping
     
    292292            # repodata found $repo is correct
    293293            $found = 1;
     294            pb_log(2,"REPO found: $repo\n");
    294295            last;
    295296        }
Note: See TracChangeset for help on using the changeset viewer.