Skip to contentSkip to conversation

scripts/oe-pkgdata-util: exclude unpackaged in glob output

PATCH In review Paul Eggleton 2 participants 2 messages Jul 30, 2012 – Jul 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/oe-pkgdata-util: exclude unpackaged in glob output

Check for .packaged file and exclude packages if this file does not exist - this avoids attempting to install empty packages during complementary package installation within do_rootfs that didn't end up being created (and failing as a result).

---
 scripts/oe-pkgdata-util |    4 ++++
 1 file changed, 4 insertions(+)
scripts/oe-pkgdata-util +4 -0
index 2427f10..900c27a 100755
@@ -112,6 +112,8 @@ def glob(args):
                     fwdfile = fwdpkgdata(mappedpkg)
                     if os.path.exists(fwdfile):
                         mappedpkg = readrenamed(fwdfile)
+                    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)
@@ -121,6 +123,8 @@ def glob(args):
                         fwdfile = fwdpkgdata(newpkg)
                         if os.path.exists(fwdfile):
                             mappedpkg = readrenamed(fwdfile)
+                        if not os.path.exists(fwdfile + ".packaged"):
+                            mappedpkg = ""
                     else:
                         # Package doesn't even exist...
                         if debug:
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 33 lines · Paul Eggleton

Check for .packaged file and exclude packages if this file does not exist - this avoids attempting to install empty packages during complementary package installation within do_rootfs that didn't end up being created (and failing as a result).

---
 scripts/oe-pkgdata-util |    4 ++++
 1 file changed, 4 insertions(+)
scripts/oe-pkgdata-util +4 -1
index 2427f10..900c27a 100755
@@ -112,6 +112,8 @@ def glob(args):
                     fwdfile = fwdpkgdata(mappedpkg)
                     if os.path.exists(fwdfile):
                         mappedpkg = readrenamed(fwdfile)
+                    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)
@@ -121,6 +123,8 @@ def glob(args):
                         fwdfile = fwdpkgdata(newpkg)
                         if os.path.exists(fwdfile):
                             mappedpkg = readrenamed(fwdfile)
+                        if not os.path.exists(fwdfile + ".packaged"):
+                            mappedpkg = ""
                     else:
                         # Package doesn't even exist...
                         if debug:
--
Quoted 1 line

1.7.9.5

Thanks for unbreaking do_rootfs part I