From: Paul Eggleton Date: Mon, 8 Apr 2013 16:18:44 +0000 (+0100) Subject: scripts/oe-pkgdata-util: find complementary packages for split packages X-Git-Tag: rev_ivi_2015_02_04~12985 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28376eaed78a416a90d8576a8d32f54ee46db951;p=scm%2Fbb%2Ftizen-distro.git scripts/oe-pkgdata-util: find complementary packages for split packages Check after getting the original package name (e.g. undoing Debian renaming) if there is a complementary package for that name, e.g. if the glob is *-dev, then libudev0 -> libudev -> libudev-dev. Fixes [YOCTO #4136]. (From OE-Core rev: 84a1c6922934a99e8afee0185e58dc4789b54a22) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 900c27a..629b2d5 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -115,14 +115,21 @@ def glob(args): if not os.path.exists(fwdfile + ".packaged"): mappedpkg = "" else: - # That didn't work, so now get the PN, substitute that, then map in the other direction revlink = revpkgdata(pkg) if os.path.exists(revlink): - pn = readpn(revlink) - newpkg = g.replace("*", pn) + # Check if we can map after undoing the package renaming (by resolving the symlink) + origpkg = os.path.basename(os.readlink(revlink)) + newpkg = g.replace("*", origpkg) fwdfile = fwdpkgdata(newpkg) if os.path.exists(fwdfile): mappedpkg = readrenamed(fwdfile) + else: + # That didn't work, so now get the PN, substitute that, then map in the other direction + pn = readpn(revlink) + newpkg = g.replace("*", pn) + fwdfile = fwdpkgdata(newpkg) + if os.path.exists(fwdfile): + mappedpkg = readrenamed(fwdfile) if not os.path.exists(fwdfile + ".packaged"): mappedpkg = "" else: