]> xenbits.xensource.com Git - pvdrivers/win/tools.git/commitdiff
Remove temporary unsigned tarball and clean up signed tarball
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 28 Feb 2017 14:47:04 +0000 (14:47 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 28 Feb 2017 14:47:04 +0000 (14:47 +0000)
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
sign.py

diff --git a/sign.py b/sign.py
index 4f9355bdb84afe8e7575af983769e772501e8f9d..483e9650147eb40ca789f1a9f4e28e617824be8d 100644 (file)
--- 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)