Make sure we always append bindist use flag to all targets.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Thu, 22 Nov 2012 02:48:01 +0000 (01:48 -0100)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Thu, 22 Nov 2012 02:49:31 +0000 (01:49 -0100)
modules/generic_stage_target.py

index 578c4af43d8b3d75ee93665ddd3597b33b5bd452..35976809214e63ff7488d0a16ba3e00275cfcd8f 100644 (file)
@@ -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"])