Skip to content
Snippets Groups Projects
Commit 6f96628c authored by Brian Smith's avatar Brian Smith
Browse files

Bug 937984: Allow client.py to pull NSPR and NSS from a user-specified repo, r=kaie

--HG--
extra : source : cb06029a7f433858176ef17c6493ff4182bb0678
parent df51ca1d
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,8 @@ o.add_option("--cvsroot", dest="cvsroot",
help="The CVSROOT for libffi (default : %s)" % CVSROOT_LIBFFI)
o.add_option("--hg", dest="hg", default=os.environ.get('HG', 'hg'),
help="The location of the hg binary")
o.add_option("--repo", dest="repo",
help="the repo to update from (default: upstream repo)")
try:
options, args = o.parse_args()
......@@ -145,11 +147,15 @@ if action in ('checkout', 'co'):
elif action in ('update_nspr'):
tag, = args[1:]
depfile = "nsprpub/config/prdepend.h"
update_nspr_or_nss(tag, depfile, 'nsprpub', 'https://hg.mozilla.org/projects/nspr')
if not options.repo:
options.repo = 'https://hg.mozilla.org/projects/nspr'
update_nspr_or_nss(tag, depfile, 'nsprpub', options.repo)
elif action in ('update_nss'):
tag, = args[1:]
depfile = "security/nss/coreconf/coreconf.dep"
update_nspr_or_nss(tag, depfile, 'security/nss', 'https://hg.mozilla.org/projects/nss')
if not options.repo:
options.repo = 'https://hg.mozilla.org/projects/nss'
update_nspr_or_nss(tag, depfile, 'security/nss', options.repo)
elif action in ('update_libffi'):
tag, = args[1:]
if not options.cvsroot:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment