summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_utils.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-06 20:11:01 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-06 11:13:05 +0000
commitc24240bcd2f833321f45ea4ce0b6c6d080a3b990 (patch)
tree0075709dd705752b56ee242bd01a72092c6a22c9 /buildtools/wafsamba/samba_utils.py
parent8fcccae6aa4f48e7ef03fbf8e5b5f24ea0209d2e (diff)
downloadsamba-c24240bcd2f833321f45ea4ce0b6c6d080a3b990.tar.gz
samba-c24240bcd2f833321f45ea4ce0b6c6d080a3b990.tar.bz2
samba-c24240bcd2f833321f45ea4ce0b6c6d080a3b990.zip
waf: fixed some python3.x portability issues
these have crept into the tree over time. Maybe we should add testing of a range of python versions to autobuild?
Diffstat (limited to 'buildtools/wafsamba/samba_utils.py')
-rw-r--r--buildtools/wafsamba/samba_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index d466cfaada..7ce9f757e9 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -11,6 +11,10 @@ import shlex
LIB_PATH="shared"
+# sigh, python octal constants are a mess
+MODE_644 = int('644', 8)
+MODE_755 = int('755', 8)
+
@conf
def SET_TARGET_TYPE(ctx, target, value):
'''set the target type of a target'''