diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-10-18 12:08:26 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-10-28 17:08:07 +0000 |
commit | 8b9ee57afbbcf633cba66e4b6e8ab7339ad6d391 (patch) | |
tree | 06158ce8056bf71cc6a536a32baf15fed90b3aa4 /scripts | |
parent | 8081dcb03f54efd551d1c8fe8a0484f8270053e0 (diff) | |
download | openembedded-core-8b9ee57afbbcf633cba66e4b6e8ab7339ad6d391.tar.gz openembedded-core-8b9ee57afbbcf633cba66e4b6e8ab7339ad6d391.tar.bz2 openembedded-core-8b9ee57afbbcf633cba66e4b6e8ab7339ad6d391.zip |
scripts/oe-pkgdata-util: remove remnants of former pkgdata structure
OE-Core commit 1b8e4abd2d9c0901d38d89d0f944fe1ffd019379 removed the
vendor-os argument from the command line, and the code using the package
architectures, so clean these items up.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-pkgdata-util | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index dcdfe25dfd..c0fd50d549 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -35,8 +35,8 @@ import fnmatch import re def usage(): - print("syntax: oe-pkgdata-util glob [-d] <pkgdatadir> <vendor-os> <pkglist> \"<globs>\"\n \ - read-value [-d] <pkgdatadir> <vendor-os> <value-name> \"<package-name>_<package_architecture>\""); + print("syntax: oe-pkgdata-util glob [-d] <pkgdatadir> <pkglist> \"<globs>\"\n \ + read-value [-d] <pkgdatadir> <value-name> \"<pkgs>\""); @@ -55,10 +55,11 @@ def glob(args): with open(pkglist_file, 'r') as f: for line in f: fields = line.rstrip().split() - if len(fields) < 2: + if not fields: continue pkg = fields[0] - arch = fields[1] + # We don't care about other args (used to need the package architecture but the + # new pkgdata structure avoids the need for that) # Skip packages for which there is no point applying globs if skipregex.search(pkg): @@ -172,9 +173,8 @@ def read_value(args): for package in packages: pkg_split = package.split('_') pkg_name = pkg_split[0] - pkg_arch = '_'.join(pkg_split[1:]) if debug: - print "package: name: '%s', arch: '%s'" % (pkg_name, pkg_arch) + print "package: '%s'" % pkg_name revlink = os.path.join(pkgdata_dir, "runtime-reverse", pkg_name) if debug: print(revlink) |