From: Paul Durrant Date: Tue, 28 Feb 2017 14:47:04 +0000 (+0000) Subject: Remove temporary unsigned tarball and clean up signed tarball X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d3aabdbbf3a389033c31203017bcc1c76f50c645;p=pvdrivers%2Fwin%2Ftools.git Remove temporary unsigned tarball and clean up signed tarball Signed-off-by: Paul Durrant --- diff --git a/sign.py b/sign.py index 4f9355b..483e965 100644 --- a/sign.py +++ b/sign.py @@ -94,6 +94,8 @@ def fetch_unsigned_package(name, version): unsigned.extractall(path=tmp.name) unsigned.close() + os.unlink(package) + return tmp @@ -107,7 +109,7 @@ def create_signed_package(path, name, tmp): cwd = os.getcwd() os.chdir(tmp.name) - signed.add('.', recursive=True) + signed.add(name, recursive=True) os.chdir(cwd)