build: move the import near the place where need it, so that we can build on hosts...
authorMatthieu Patou <mat@matws.net>
Sun, 12 Dec 2010 20:57:37 +0000 (23:57 +0300)
committerMatthieu Patou <mat@samba.org>
Sun, 12 Dec 2010 21:54:19 +0000 (22:54 +0100)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 22:54:19 CET 2010 on sn-devel-104

buildtools/wafsamba/samba_dist.py

index 1b278062250995bf3f6a328660a4c39a12711118..d2be291703d15780b90f8f594a76cdccc55a8534 100644 (file)
@@ -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: