summaryrefslogtreecommitdiff
path: root/classes/package.bbclass
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2008-10-18 18:16:39 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2008-10-18 18:16:39 +0200
commit245f7d129f3dba351b3c8ef284df69a86261904c (patch)
tree258f2fcd46890f805f861094e80688e08a40bc7f /classes/package.bbclass
parentc0b6dd9b41279ff00c5a90e49108945a0fee9cdd (diff)
WorkInProgress: Mangle the DISTRO_PR into the package revisions
Diffstat (limited to 'classes/package.bbclass')
-rw-r--r--classes/package.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index a12bfb0a21..5daa7065ce 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -4,6 +4,12 @@
PKGDEST = "${WORKDIR}/install"
+def build_package_revision(d):
+ file_pr = bb.data.getVar('PR', d, True)
+ distro_pr = bb.data.getVar('DISTRO_PR', d, True) or ""
+ return "%s%s" % (file_pr, distro_pr)
+
+
def legitimize_package_name(s):
"""
Make sure package names are legitimate strings