Removed some debug prints and made sure that -no-update is respected.

Reviewed-by: Sergio Ahumada
This commit is contained in:
axis
2011-04-28 16:03:32 +02:00
parent 2690ff63b7
commit 0b4b4cc5d1

View File

@@ -142,18 +142,18 @@ if ($nokia_developer) {
my $this_mirror_url;
no warnings 'uninitialized';
if($exceptions{$repo} ne undef){
print("Alpha\n");
$this_mirror_url = $exceptions{$repo};
} else {
print("Beta\n");
$this_mirror_url = "$mirror_url$repo.git";
}
print("Using mirror $this_mirror_url to clone $url\n");
chdir($repo) or die "cd failed";#is there a continue instead of die?
system_v("git clone $this_mirror_url .");
system_v("git config remote.origin.url $url");
system_v("git remote add mirror $this_mirror_url");
chdir("..") or die "cd fail";
unless ($no_update) {
system_v("git clone $this_mirror_url $repo");
chdir($repo) or die "cd failed";
system_v("git config remote.origin.url $url");
system_v("git remote add mirror $this_mirror_url");
chdir("..") or die "cd fail";
}
}
}
}