diff options
author | Rob Austein <sra@hactrn.net> | 2013-01-22 07:27:48 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-01-22 07:27:48 +0000 |
commit | fe14da57a1f186a80e6e337b2d81e34e21570d1e (patch) | |
tree | a934f3277a6db12adaa8b0af7ae4a1e7ebff018e /buildtools | |
parent | a72c2d12081a66117420d530bd6e8b4e2fc7aa90 (diff) |
Hack to support new subversion-revision-style snapshots.
svn path=/branches/tk377/; revision=4976
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/build-freebsd-rp-port.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/build-freebsd-rp-port.py b/buildtools/build-freebsd-rp-port.py index 1bc06433..091b6435 100644 --- a/buildtools/build-freebsd-rp-port.py +++ b/buildtools/build-freebsd-rp-port.py @@ -57,7 +57,16 @@ try: except: base, branch, vers = None -if branch not in ("trunk", "tk377") or not vers.isdigit(): +if base not in ("rpkitools", "rpki"): + base = None + +if branch != "trunk" and (branch[:2] != "tk" or not branch[2:].isdigit()): + branch = None + +if not vers.isdigit() and (base != "rpki" or vers[0] != "r" or not vers[1:].isdigit()): + vers = None + +if None in (base, branch, vers): sys.exit("Unexpected tarball URL name format") base += "-rp" |