diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /scripts/oe-pkgdata-util | |
parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
download | poky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz |
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>
Diffstat (limited to 'scripts/oe-pkgdata-util')
-rwxr-xr-x | scripts/oe-pkgdata-util | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 75dd23efa3..94d44002ab 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util | |||
@@ -96,7 +96,7 @@ def glob(args): | |||
96 | pn = os.path.basename(pkgdata_file) | 96 | pn = os.path.basename(pkgdata_file) |
97 | with open(pkgdata_file, 'r') as f: | 97 | with open(pkgdata_file, 'r') as f: |
98 | for line in f: | 98 | for line in f: |
99 | if line.startswith("PKG_%s:" % pn): | 99 | if line.startswith("PKG:%s:" % pn): |
100 | renamed = line.split(': ')[1].rstrip() | 100 | renamed = line.split(': ')[1].rstrip() |
101 | return renamed | 101 | return renamed |
102 | 102 | ||
@@ -213,7 +213,7 @@ def lookup_pkglist(pkgs, pkgdata_dir, reverse): | |||
213 | with open(pkgfile, 'r') as f: | 213 | with open(pkgfile, 'r') as f: |
214 | for line in f: | 214 | for line in f: |
215 | fields = line.rstrip().split(': ') | 215 | fields = line.rstrip().split(': ') |
216 | if fields[0] == 'PKG_%s' % pkg: | 216 | if fields[0] == 'PKG:%s' % pkg: |
217 | mappings[pkg].append(fields[1]) | 217 | mappings[pkg].append(fields[1]) |
218 | break | 218 | break |
219 | return mappings | 219 | return mappings |