All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Müller" <schnitzeltony@googlemail.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] scripts/oe-pkgdata-util: exclude unpackaged in glob output
Date: Tue, 31 Jul 2012 15:12:20 +0200	[thread overview]
Message-ID: <CALbNGRSMUgxBXzrNkX_1DjCAso5rKjXDrRFckpxzkvqkKsMUNw@mail.gmail.com> (raw)
In-Reply-To: <1343638321-25398-1-git-send-email-paul.eggleton@linux.intel.com>

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>



      reply	other threads:[~2012-07-31 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALbNGRSMUgxBXzrNkX_1DjCAso5rKjXDrRFckpxzkvqkKsMUNw@mail.gmail.com \
    --to=schnitzeltony@googlemail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.