summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-11-12 18:20:02 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-11-12 17:42:14 +0000
commit8d07e6d986322c4954a385b9bfea73f0931b3053 (patch)
treed7b2bd933fd3fa2aff286e2a3b5f582d80187795
parent7d961ddc443a31d71cd3d2c02a397128da9be120 (diff)
downloadsamba-8d07e6d986322c4954a385b9bfea73f0931b3053.tar.gz
samba-8d07e6d986322c4954a385b9bfea73f0931b3053.tar.bz2
samba-8d07e6d986322c4954a385b9bfea73f0931b3053.zip
samba_version: Make COMMIT_IS_CLEAN an int rather than a string.
-rw-r--r--buildtools/wafsamba/samba_version.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildtools/wafsamba/samba_version.py b/buildtools/wafsamba/samba_version.py
index 6e8764db64..ef3b39a1f9 100644
--- a/buildtools/wafsamba/samba_version.py
+++ b/buildtools/wafsamba/samba_version.py
@@ -37,10 +37,10 @@ def bzr_version_summary(path):
ret = "GIT-" + fields["GIT_COMMIT_ABBREV"]
if workingtree.WorkingTree.open(path).has_changes():
- fields["COMMIT_IS_CLEAN"] = "0"
+ fields["COMMIT_IS_CLEAN"] = 0
ret += "+"
else:
- fields["COMMIT_IS_CLEAN"] = "1"
+ fields["COMMIT_IS_CLEAN"] = 1
return (ret, fields)
@@ -63,9 +63,9 @@ def git_version_summary(path, have_git):
clean = Utils.cmd_output('git diff HEAD | wc -l', silent=True)
if clean == "0\n":
- fields["COMMIT_IS_CLEAN"] = "1"
+ fields["COMMIT_IS_CLEAN"] = 1
else:
- fields["COMMIT_IS_CLEAN"] = "0"
+ fields["COMMIT_IS_CLEAN"] = 0
ret += "+"
return (ret, fields)