summaryrefslogtreecommitdiffstats
path: root/meta/classes/packaged-staging.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-02 15:22:10 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-02 15:22:10 +0000
commit096b0cd29275043aafb820026a49e525089e15cf (patch)
tree3a5d866abf8e29512f239ba533fc021fce9502f1 /meta/classes/packaged-staging.bbclass
parent66d13479c4e75b4e7e04ff639384c2574441112c (diff)
downloadpoky-096b0cd29275043aafb820026a49e525089e15cf.tar.gz
packaged-staging.bbclass: Add rpm package coverage
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5382 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/packaged-staging.bbclass')
-rw-r--r--meta/classes/packaged-staging.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass
index 4c468b8c77..a7dd1f80c1 100644
--- a/meta/classes/packaged-staging.bbclass
+++ b/meta/classes/packaged-staging.bbclass
@@ -361,6 +361,8 @@ python do_package_stage () {
361 ipkpath = bb.data.getVar('DEPLOY_DIR_IPK', d, True).replace(tmpdir, stagepath) 361 ipkpath = bb.data.getVar('DEPLOY_DIR_IPK', d, True).replace(tmpdir, stagepath)
362 if bb.data.inherits_class('package_deb', d): 362 if bb.data.inherits_class('package_deb', d):
363 debpath = bb.data.getVar('DEPLOY_DIR_DEB', d, True).replace(tmpdir, stagepath) 363 debpath = bb.data.getVar('DEPLOY_DIR_DEB', d, True).replace(tmpdir, stagepath)
364 if bb.data.inherits_class('package_rpm', d):
365 rpmpath = bb.data.getVar('DEPLOY_DIR_RPM', d, True).replace(tmpdir, stagepath)
364 366
365 for pkg in packages: 367 for pkg in packages:
366 pkgname = bb.data.getVar('PKG_%s' % pkg, d, 1) 368 pkgname = bb.data.getVar('PKG_%s' % pkg, d, 1)
@@ -393,6 +395,18 @@ python do_package_stage () {
393 bb.mkdirhier(destpath) 395 bb.mkdirhier(destpath)
394 bb.copyfile(srcfile, destpath + srcname) 396 bb.copyfile(srcfile, destpath + srcname)
395 397
398 if bb.data.inherits_class('package_rpm', d):
399 version = bb.data.getVar('PV', d, 1)
400 version = version.replace('-', '+')
401 bb.data.setVar('RPMPV', version, d)
402 srcname = bb.data.expand(pkgname + "-${RPMPV}-" + pr + ".${TARGET_ARCH}.rpm", d)
403 srcfile = bb.data.expand("${DEPLOY_DIR_RPM}/" + arch + "/" + srcname, d)
404 if os.path.exists(srcfile):
405 destpath = rpmpath + "/" + arch + "/"
406 bb.mkdirhier(destpath)
407 bb.copyfile(srcfile, destpath + srcname)
408
409
396 # 410 #
397 # Handle stamps/ files 411 # Handle stamps/ files
398 # 412 #