All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/oe-pkgdata-util: exclude unpackaged in glob output
@ 2012-07-30  8:52 Paul Eggleton
  2012-07-31 13:12 ` Andreas Müller
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2012-07-30  8:52 UTC (permalink / raw)
  To: openembedded-core

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).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 scripts/oe-pkgdata-util |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index 2427f10..900c27a 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -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:
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scripts/oe-pkgdata-util: exclude unpackaged in glob output
  2012-07-30  8:52 [PATCH] scripts/oe-pkgdata-util: exclude unpackaged in glob output Paul Eggleton
@ 2012-07-31 13:12 ` Andreas Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Müller @ 2012-07-31 13:12 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Jul 30, 2012 at 10:52 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> 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).
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  scripts/oe-pkgdata-util |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
> index 2427f10..900c27a 100755
> --- a/scripts/oe-pkgdata-util
> +++ b/scripts/oe-pkgdata-util
> @@ -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:
> --
> 1.7.9.5
Thanks for unbreaking do_rootfs part I

Acked-by: Andreas Müller <schnitzeltony@googlemail.com>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-31 13:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-30  8:52 [PATCH] scripts/oe-pkgdata-util: exclude unpackaged in glob output Paul Eggleton
2012-07-31 13:12 ` Andreas Müller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.