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()