From afb699f8d39c02ba805d0ac67576cb5988e8509f Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 29 Dec 2020 20:42:43 +0000 Subject: [PATCH] Include mod name as prefix to zips created by git-archive-all --- app/tasks/importtasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index 03a4274..f4bdc0e 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -222,7 +222,7 @@ def makeVCSRelease(self, id, branch): destPath = os.path.join(app.config["UPLOAD_DIR"], filename) assert(not os.path.isfile(destPath)) - archiver = GitArchiver(force_sub=True, main_repo_abspath=repo.working_tree_dir) + archiver = GitArchiver(prefix=release.package.name, force_sub=True, main_repo_abspath=repo.working_tree_dir) archiver.create(destPath) assert(os.path.isfile(destPath))