summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/configurator.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-27 16:10:39 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-01 16:49:09 +0100
commit42fe3c613153c8abfa9cba4307919a69778fe739 (patch)
tree8266a632fa3120957887418ba2b5c693105f2346 /bitbake/lib/bb/ui/crumbs/configurator.py
parenta10fb4f72a3a072baf8d50f5a9c1dff93320a5ed (diff)
downloadpoky-42fe3c613153c8abfa9cba4307919a69778fe739.tar.gz
hob: more reliable disabling of GPLv3 packages
1. reflect GPLv3's presence in INCOMPATIBLE_LICENSE value in the UI The hob UI currently only supports GPLv3 as a value for INCOMPATIBLE_LICENSE but doesn't properly reflect whether the value is already set. This patch rectifies this. 2. don't stomp over other INCOMPATIBLE_LICENSE values when disabling GPLv3 In case the user has other values set for INCOMPATIBLE_LICENSE we don't want to overwrite the value, we want to modify it. Fixes [#1286] (Bitbake rev: 68b992922bc7148d657a1c706c6acc67812a87c0) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/configurator.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/configurator.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/configurator.py b/bitbake/lib/bb/ui/crumbs/configurator.py
index ec48a4f3f0..587a6ff129 100644
--- a/bitbake/lib/bb/ui/crumbs/configurator.py
+++ b/bitbake/lib/bb/ui/crumbs/configurator.py
@@ -84,9 +84,6 @@ class Configurator(gobject.GObject):
84 pmake = getString('PARALLEL_MAKE') 84 pmake = getString('PARALLEL_MAKE')
85 if pmake and pmake != self.config.get('PARALLEL_MAKE', ''): 85 if pmake and pmake != self.config.get('PARALLEL_MAKE', ''):
86 self.config['PARALLEL_MAKE'] = pmake 86 self.config['PARALLEL_MAKE'] = pmake
87 incompat = getString('INCOMPATIBLE_LICENSE')
88 if incompat and incompat != self.config.get('INCOMPATIBLE_LICENSE', ''):
89 self.config['INCOMPATIBLE_LICENSE'] = incompat
90 pclass = getString('PACKAGE_CLASSES') 87 pclass = getString('PACKAGE_CLASSES')
91 if pclass and pclass != self.config.get('PACKAGE_CLASSES', ''): 88 if pclass and pclass != self.config.get('PACKAGE_CLASSES', ''):
92 self.config['PACKAGE_CLASSES'] = pclass 89 self.config['PACKAGE_CLASSES'] = pclass
@@ -94,11 +91,25 @@ class Configurator(gobject.GObject):
94 if fstypes and fstypes != self.config.get('IMAGE_FSTYPES', ''): 91 if fstypes and fstypes != self.config.get('IMAGE_FSTYPES', ''):
95 self.config['IMAGE_FSTYPES'] = fstypes 92 self.config['IMAGE_FSTYPES'] = fstypes
96 93
94 # Values which aren't always set in the conf must be explicitly
95 # loaded as empty values for save to work
96 incompat = getString('INCOMPATIBLE_LICENSE')
97 if incompat and incompat != self.config.get('INCOMPATIBLE_LICENSE', ''):
98 self.config['INCOMPATIBLE_LICENSE'] = incompat
99 else:
100 self.config['INCOMPATIBLE_LICENSE'] = ""
101
97 self.orig_config = copy.deepcopy(self.config) 102 self.orig_config = copy.deepcopy(self.config)
98 103
99 def setLocalConfVar(self, var, val): 104 def setLocalConfVar(self, var, val):
100 self.config[var] = val 105 self.config[var] = val
101 106
107 def getLocalConfVar(self, var):
108 if var in self.config:
109 return self.config[var]
110 else:
111 return ""
112
102 def _loadLayerConf(self, path): 113 def _loadLayerConf(self, path):
103 self.bblayers = path 114 self.bblayers = path
104 self.enabled_layers = {} 115 self.enabled_layers = {}