From 6e896541c52f5bc4d4d591bf2b24a6a640972589 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 5 Nov 2019 14:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0keys=20=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/deploy_keys.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy/deploy_keys.py b/deploy/deploy_keys.py index 26357e4..62316da 100644 --- a/deploy/deploy_keys.py +++ b/deploy/deploy_keys.py @@ -86,9 +86,10 @@ class DeployKeys: log.error(f"get remote {self.project} svn failed", exc_info=True) project_paths = os.path.join(self.svn_paths, self.project) - tar = tarfile.open(project_paths + '.tar.gz', 'w:gz') - os.chdir(self.project_paths) - for f in os.listdir(self.svn_paths): + tar = tarfile.open(self.svn_paths + '.tar.gz', 'w:gz') + os.chdir(self.svn_paths) + key_dirs = os.path.join(self.svn_paths, "keys") + for f in os.listdir(key_dirs): tar.add(f) tar.close()