From d3aabdbbf3a389033c31203017bcc1c76f50c645 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Tue, 28 Feb 2017 14:47:04 +0000 Subject: [PATCH] Remove temporary unsigned tarball and clean up signed tarball Signed-off-by: Paul Durrant --- sign.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5