From 35206df51af8288bedc3efb5e8bdd44feff42af6 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sun, 12 Dec 2010 23:57:37 +0300 Subject: [PATCH] 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 Autobuild-Date: Sun Dec 12 22:54:19 CET 2010 on sn-devel-104 --- buildtools/wafsamba/samba_dist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py index 1b2780622509..d2be291703d1 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: -- 2.34.1