* [PATCH] packaged-staging.bbclass: bug fix in ipk file name generation for searching ipk file.
@ 2011-01-10 4:13 Ahsan, Noor
2011-01-10 16:42 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Ahsan, Noor @ 2011-01-10 4:13 UTC (permalink / raw)
To: openembedded-devel
* 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>
---
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 + "/"
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] packaged-staging.bbclass: bug fix in ipk file name generation for searching ipk file.
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
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2011-01-10 16:42 UTC (permalink / raw)
To: openembedded-devel
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 + "/"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-10 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.