[oe-commits] Lynn Lin : package_rpm: fix move wrong generated rpm name - closes #5078

GIT User account git at amethyst.openembedded.net
Tue May 19 11:24:56 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a5f902c677e9f919a1170a8355e158499fb0a27e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a5f902c677e9f919a1170a8355e158499fb0a27e

Author: Lynn Lin <lynn.lin at avocent.com>
Date:   Tue May 19 13:18:20 2009 +0200

package_rpm: fix move wrong generated rpm name - closes #5078

---

 classes/package_rpm.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/classes/package_rpm.bbclass b/classes/package_rpm.bbclass
index 71fa760..0cebdea 100644
--- a/classes/package_rpm.bbclass
+++ b/classes/package_rpm.bbclass
@@ -136,7 +136,7 @@ python write_specfile() {
 	bb.build.exec_func('BUILDSPEC', d)
 
 	# move the rpm into the pkgoutdir
-	rpm = bb.data.expand('${RPMBUILDPATH}/RPMS/${TARGET_ARCH}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d)
+	rpm = bb.data.expand('${RPMBUILDPATH}/RPMS/${TARGET_ARCH}/${PKG}-${RPMPV}-${PR}${DISTRO_PR}.${TARGET_ARCH}.rpm', d)
 	outrpm = bb.data.expand('${DEPLOY_DIR_RPM}/${PACKAGE_ARCH}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d)
 	bb.movefile(rpm, outrpm)
 }





More information about the Openembedded-commits mailing list