From 9cb44ec10cf3004f8038b6e8bd4a0fb015a2e0b4 Mon Sep 17 00:00:00 2001 From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" Date: Thu, 22 Nov 2012 01:48:01 -0100 Subject: [PATCH] Make sure we always append bindist use flag to all targets. --- modules/generic_stage_target.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index 578c4af4..35976809 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -485,10 +485,13 @@ class generic_stage_target(generic_target): self.settings["use"]=\ self.settings[self.settings["spec_prefix"]+"/use"] del self.settings[self.settings["spec_prefix"]+"/use"] - if self.settings.has_key("use"): - if type(self.settings["use"])==types.StringType: - self.settings["use"]=self.settings["use"].split() - self.settings["use"].append("bindist") + if not self.settings.has_key("use"): + self.settings["use"]="" + if type(self.settings["use"])==types.StringType: + self.settings["use"]=self.settings["use"].split() + + # Force bindist for all targets + self.settings["use"].append("bindist") def set_stage_path(self): self.settings["stage_path"]=normpath(self.settings["chroot_path"]) -- 2.26.2