summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorAnup (OpenERP) <ach@tinyerp.com>2010-05-13 15:37:58 +0530
committerAnup (OpenERP) <ach@tinyerp.com>2010-05-13 15:37:58 +0530
commit97f5d3a781377ecb24ac7cbc4102ea61b8429558 (patch)
tree2933be0fb2f2692b192d65445aef82fe84940e0d /setup.py
parentd2ad2f4355965fc2bd38e9f75d2e62f38329d1bf (diff)
[FIX] In the case we want to generate the RPM package, we change the version
bzr revid: ach@tinyerp.com-20100513100758-ev8l513snmgntk4a
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
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