From 97f5d3a781377ecb24ac7cbc4102ea61b8429558 Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Thu, 13 May 2010 15:37:58 +0530 Subject: [PATCH] [FIX] In the case we want to generate the RPM package, we change the version bzr revid: ach@tinyerp.com-20100513100758-ev8l513snmgntk4a --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9bb569ea7a1..41f517f1689 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ sys.path.append(join(os.path.abspath(os.path.dirname(__file__)), "bin")) execfile(join('bin', 'release.py')) -if sys.argv[1] == 'bdist_rpm': +if 'bdist_rpm' in sys.argv: version = version.split('-')[0] # get python short version