mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -96,7 +96,7 @@ def glob(args):
|
||||
pn = os.path.basename(pkgdata_file)
|
||||
with open(pkgdata_file, 'r') as f:
|
||||
for line in f:
|
||||
if line.startswith("PKG_%s:" % pn):
|
||||
if line.startswith("PKG:%s:" % pn):
|
||||
renamed = line.split(': ')[1].rstrip()
|
||||
return renamed
|
||||
|
||||
@@ -213,7 +213,7 @@ def lookup_pkglist(pkgs, pkgdata_dir, reverse):
|
||||
with open(pkgfile, 'r') as f:
|
||||
for line in f:
|
||||
fields = line.rstrip().split(': ')
|
||||
if fields[0] == 'PKG_%s' % pkg:
|
||||
if fields[0] == 'PKG:%s' % pkg:
|
||||
mappings[pkg].append(fields[1])
|
||||
break
|
||||
return mappings
|
||||
|
||||
Reference in New Issue
Block a user