summaryrefslogtreecommitdiff
path: root/gentree.py
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2013-04-04 18:01:51 +0200
committerJohannes Berg <johannes@sipsolutions.net>2013-04-04 18:21:19 +0200
commit49049388739582ee21641aadac7623c63669aaf3 (patch)
tree5cb4056577a1350dd4155fe08ac87fd072338856 /gentree.py
parent30fa4be954401986554b5bd5cf9cdcbfdcba1623 (diff)
git tracker: override versions file
Otherwise it keeps changing. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'gentree.py')
-rwxr-xr-xgentree.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gentree.py b/gentree.py
index 81516fe5..5c59a059 100755
--- a/gentree.py
+++ b/gentree.py
@@ -235,7 +235,8 @@ def _main():
def process(kerneldir, outdir, copy_list_file, git_revision=None,
clean=False, refresh=False, base_name="Linux", gitdebug=False,
- verbose=False, extra_driver=[], logwrite=lambda x:None):
+ verbose=False, extra_driver=[], logwrite=lambda x:None,
+ kernel_version_name=None, backport_version_name=None):
class Args(object):
def __init__(self, kerneldir, outdir, copy_list_file,
git_revision, clean, refresh, base_name,
@@ -377,8 +378,8 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None,
git_debug_snapshot(args, "convert select to depends on")
# write the versioning file
- backports_version = git.describe(tree=source_dir)
- kernel_version = git.describe(tree=args.kerneldir)
+ backports_version = backport_version_name or git.describe(tree=source_dir)
+ kernel_version = kernel_version_name or git.describe(tree=args.kerneldir)
f = open(os.path.join(args.outdir, 'versions'), 'w')
f.write('BACKPORTS_VERSION="%s"\n' % backports_version)
f.write('BACKPORTED_KERNEL_VERSION="%s"\n' % kernel_version)