From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] packaged-staging.bbclass: bug fix in ipk file name generation for searching ipk file.
Date: Mon, 10 Jan 2011 08:42:11 -0800 [thread overview]
Message-ID: <4D2B36E3.4080404@gmail.com> (raw)
In-Reply-To: <1294632837-21666-1-git-send-email-noor_ahsan@mentor.com>
On 1/9/2011 8:13 PM, Ahsan, Noor wrote:
> * First check the availability of PKGV_pkg variable, if it is not available then get value from PKGV variable for creating ipk file name for searching ipk file.
>
> Signed-off-by: Ahsan, Noor<noor_ahsan@mentor.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
> ---
> classes/packaged-staging.bbclass | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/classes/packaged-staging.bbclass b/classes/packaged-staging.bbclass
> index d0aaea1..1200abc 100644
> --- a/classes/packaged-staging.bbclass
> +++ b/classes/packaged-staging.bbclass
> @@ -454,10 +454,13 @@ python do_package_stage () {
> pr = bb.data.getVar('PR_%s' % pkg, d, 1)
> if not pr:
> pr = bb.data.getVar('PR', d, 1)
> + pkgv = bb.data.getVar('PKGV_%s' % pkg, d, 1)
> + if not pkgv:
> + pkgv = bb.data.getVar('PKGV', d, 1)
> if not oe.packagedata.packaged(pkg, d):
> continue
> if bb.data.inherits_class('package_ipk', d):
> - srcname = bb.data.expand(pkgname + "_${PKGV}-" + pr + "${DISTRO_PR}" + "_" + arch + ".ipk", d)
> + srcname = bb.data.expand(pkgname + "_" + pkgv + "-" + pr + "${DISTRO_PR}" + "_" + arch + ".ipk", d)
> srcfile = bb.data.expand("${DEPLOY_DIR_IPK}/" + arch + "/" + srcname, d)
> if os.path.exists(srcfile):
> destpath = ipkpath + "/" + arch + "/"
prev parent reply other threads:[~2011-01-10 16:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-10 4:13 [PATCH] packaged-staging.bbclass: bug fix in ipk file name generation for searching ipk file Ahsan, Noor
2011-01-10 16:42 ` Khem Raj [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=4D2B36E3.4080404@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@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.