summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-07-07 10:35:21 -0400
committerRaul Cuza <raulcuza@gmail.com>2011-07-07 10:35:21 -0400
commit5c9f5c5052acf4107ecbf13d5ab63c1a7996c87e (patch)
tree209d1b438b99310b112d340a1ee8ec47520e191d /tools
parentddbaad0ea618ce3bfd92db2cedc25ccc75a10f13 (diff)
downloadbcfg2-5c9f5c5052acf4107ecbf13d5ab63c1a7996c87e.tar.gz
bcfg2-5c9f5c5052acf4107ecbf13d5ab63c1a7996c87e.tar.bz2
bcfg2-5c9f5c5052acf4107ecbf13d5ab63c1a7996c87e.zip
Check length of version['micro'] instead of value.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/export.py b/tools/export.py
index b1c4d0ecb..c690ecd73 100755
--- a/tools/export.py
+++ b/tools/export.py
@@ -108,7 +108,7 @@ def main(argv=None):
if not version_info["major"].isdigit() or not version_info["minor"].isdigit() or not version_info["micro"]:
raise VersionError('isdigit() test failed')
- if version_info["micro"] > 1:
+ if len(version_info["micro"]) > 1:
raise VersionError('micro must be single digit because IFMinorVersion restrictions in Mac OS X Packaging')
except:
print """Version must be of the form Major.Minor.MicroBuild,