summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-12-12 23:57:37 +0300
committerMatthieu Patou <mat@samba.org>2010-12-12 22:54:19 +0100
commit35206df51af8288bedc3efb5e8bdd44feff42af6 (patch)
tree8fb63f16b0dc8b57ccfc60fe963792a8672c00db
parent4c373d20131fecf09a3e8c053597f68d772b8d55 (diff)
downloadsamba-35206df51af8288bedc3efb5e8bdd44feff42af6.tar.gz
samba-35206df51af8288bedc3efb5e8bdd44feff42af6.tar.bz2
samba-35206df51af8288bedc3efb5e8bdd44feff42af6.zip
build: move the import near the place where need it, so that we can build on hosts with python's zlib
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Dec 12 22:54:19 CET 2010 on sn-devel-104
-rw-r--r--buildtools/wafsamba/samba_dist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py
index 1b27806225..d2be291703 100644
--- a/buildtools/wafsamba/samba_dist.py
+++ b/buildtools/wafsamba/samba_dist.py
@@ -1,7 +1,7 @@
# customised version of 'waf dist' for Samba tools
# uses git ls-files to get file lists
-import Utils, os, sys, tarfile, gzip, stat, Scripting, Logs, Options
+import Utils, os, sys, tarfile, stat, Scripting, Logs, Options
from samba_utils import *
dist_dirs = None
@@ -160,6 +160,7 @@ def dist(appname='',version=''):
tar.close()
if Options.options.SIGN_RELEASE:
+ import gzip
try:
os.unlink(dist_name + '.asc')
except OSError: