From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] devtool: extract: remove patches when S=WORKDIR
Date: Wed, 22 Apr 2015 16:51:22 +0300 [thread overview]
Message-ID: <1429710682.5183.14.camel@linux.intel.com> (raw)
In-Reply-To: <11442871.jqCMSY985y@peggleto-mobl.ger.corp.intel.com>
Hi Paul,
On Tue, 2015-04-21 at 16:04 +0100, Paul Eggleton wrote:
> Hi Markus,
>
> On Tuesday 21 April 2015 17:49:54 Markus Lehtonen wrote:
> > All local files from the layer, including patches, are added to to
> > srctree repository when S==WORKDIR. The patch files are useless as they
> > are automatically applied on top of the srctree by devtool.
> >
> > This change causes devtool extract to remove these unnecessary (and
> > possibly confusing) patch file(s). The patches will be removed in one
> > single commit.
> >
> > [YOCTO #7602]
> >
> > Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
> > ---
> > scripts/lib/devtool/standard.py | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> >
> > diff --git a/scripts/lib/devtool/standard.py
> > b/scripts/lib/devtool/standard.py index a50a771..41bcf86 100644
> > --- a/scripts/lib/devtool/standard.py
> > +++ b/scripts/lib/devtool/standard.py
> > @@ -248,6 +248,26 @@ def _extract_source(srctree, keep_temp, devbranch, d):
> > else:
> > os.rmdir(patchdir)
> >
> > + # Find local patches that were "unpacked" to srctree directory
> > + patches = []
> > + for uri in (crd.getVar('SRC_URI', True) or "").split():
> > + if uri.startswith('file://'):
> > + fname = os.path.basename(uri).split(';')[0]
> > + # Take patch "basename" without the possible compression
> > + # extension (.gz etc)
> > + match = re.match(r'^(.+\.patch)(\..+)?$', fname)
> > + if match:
> > + patches.append(match.group(1))
>
> Could you please use get_recipe_patches() from recipeutils.py for this?
> There's some logic in there that I'd rather we didn't re-implement.
OK. Fixed in v2 of the patch.
Thanks,
Markus
prev parent reply other threads:[~2015-04-22 13:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 14:49 [PATCH] devtool: extract: remove patches when S=WORKDIR Markus Lehtonen
2015-04-21 15:04 ` Paul Eggleton
2015-04-22 13:51 ` Markus Lehtonen [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=1429710682.5183.14.camel@linux.intel.com \
--to=markus.lehtonen@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul.eggleton@linux.intel.com \
/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.