mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Fix erroneously importing package fields from spec files
Once we get to the package definitions we don't want to be gathering field values (or we'll just get the last package's summary value for the overall summary for example). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
6deed03a1c
commit
23955f5ac9
|
@ -202,6 +202,7 @@ def update_recipe_file(path, recipe, repodir, raiseexceptions=False):
|
|||
applyextra = []
|
||||
configopts = ''
|
||||
inconf = False
|
||||
pastpackage = False
|
||||
for line in f:
|
||||
if inconf:
|
||||
line = line.rstrip()
|
||||
|
@ -262,6 +263,8 @@ def update_recipe_file(path, recipe, repodir, raiseexceptions=False):
|
|||
if name in defines:
|
||||
del defines[name]
|
||||
continue
|
||||
elif line.startswith('%package'):
|
||||
pastpackage = True
|
||||
elif line.startswith('%patch'):
|
||||
patchsplit = line.split()
|
||||
if '-P' in line:
|
||||
|
@ -311,7 +314,7 @@ def update_recipe_file(path, recipe, repodir, raiseexceptions=False):
|
|||
elif 'git apply' in line:
|
||||
applyextra.append(line)
|
||||
|
||||
if ':' in line and not line.startswith('%'):
|
||||
if not pastpackage and ':' in line and not line.startswith('%'):
|
||||
key, value = line.split(':', 1)
|
||||
key = key.rstrip().lower()
|
||||
value = value.strip()
|
||||
|
|
Loading…
Reference in New Issue
Block a user