From 841007b5c5cee6f9701fb8ab6921231ca1205c2c Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Sat, 18 Jun 2011 03:31:47 -0300 Subject: [PATCH] added envvar SCRAPY_VERSION_FROM_HG=1 to extras/makedeb.py script --- extras/makedeb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extras/makedeb.py b/extras/makedeb.py index 054204cf2..ca1b69470 100644 --- a/extras/makedeb.py +++ b/extras/makedeb.py @@ -16,7 +16,9 @@ def build(suffix): with open(ifn, 'w') as of: of.write(s) - check_call('debchange -m -D unstable --force-distribution -v $(python setup.py --version)-r$(hg tip --template "{rev}")+$(date +%s) "Automatic build"', shell=True) + env={'SCRAPY_VERSION_FROM_HG': '1'} + check_call('debchange -m -D unstable --force-distribution -v $(python setup.py --version)+$(date +%s) "Automatic build"', \ + shell=True, env=env) check_call('debuild -us -uc -b', shell=True) def clean(suffix):