aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2011-04-28 16:03:32 +0200
committeraxis <qt-info@nokia.com>2011-04-28 16:15:07 +0200
commit0b4b4cc5d128dd4bb2f1cb6e1e6da76bebf744e3 (patch)
tree4d356438d6179d9d1f205b0f8543f0bfd9baef6b /init-repository
parent2690ff63b75d8f1eb140e86cfa82be4fc98ea7d8 (diff)
Removed some debug prints and made sure that -no-update is respected.
Reviewed-by: Sergio Ahumada
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository14
1 files changed, 7 insertions, 7 deletions
diff --git a/init-repository b/init-repository
index 61626320..d6db94b3 100755
--- a/init-repository
+++ b/init-repository
@@ -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";
+ }
}
}
}