summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-10-26 17:48:07 +0200
committerRichard Maw <richard.maw@gmail.com>2014-11-05 10:42:00 +0000
commit2f33e342f96255fc0caca810b5bba324f505a1e2 (patch)
tree6e4e6dcfa1037e2935d2c636d0c34b7e32934149
parent2e4f9e911198ba117eee09b6192713215e7d109b (diff)
downloadlorry-2f33e342f96255fc0caca810b5bba324f505a1e2.tar.gz
Make hg pulls use URL from spec, not defaultbaserock/richardmaw/lars-url-change-fix
-rwxr-xr-xlorry7
1 files changed, 6 insertions, 1 deletions
diff --git a/lorry b/lorry
index b802ebd..898ee4c 100755
--- a/lorry
+++ b/lorry
@@ -451,7 +451,12 @@ class Lorry(cliapp.Application):
hgdir = os.path.join(dirname, 'hg')
if os.path.exists(hgdir):
self.progress('.. updating hg branch')
- self.run_program(['hg', 'pull', '--quiet', '--insecure'], cwd=hgdir)
+
+ # Note that we always specify the URL from the spec, so
+ # that if the spec changes, we pick up the new URL.
+ self.run_program(
+ ['hg', 'pull', '--quiet', '--insecure', spec['url']],
+ cwd=hgdir)
else:
self.progress('.. doing initial hg branch')
self.run_program(['hg', 'clone', '--quiet', '--insecure', spec['url'], hgdir])