From 8b363fa2a1ba12c47823feb19449055ef196370d Mon Sep 17 00:00:00 2001 From: Mira <86979912+mira-miracoli@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:59:11 +0100 Subject: [PATCH] copy list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Manuel Domínguez <43052541+kysrpex@users.noreply.github.com> --- build.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index bb0df0b..9e9ef5d 100755 --- a/build.py +++ b/build.py @@ -267,12 +267,9 @@ def assemble_name(self): https://github.com/usegalaxy-eu/vgcn/issues/78 """ name = ["vgcn"] - if "generic" in self.provisioning: - provisioning = self.provisioning - provisioning.remove("generic") - name += [f"+{'+'.join(provisioning)}"] - else: - name += [f"!generic+{'+'.join(self.provisioning)}"] + provisioning = self.provisioning.copy() + if "generic" not in self.provisioning: + provisioning.insert(0, "!generic") name = [ "vgcn", "-".join(self.template.split("-", 2)[:2]),