diff options
Diffstat (limited to 'classes/package.bbclass')
-rw-r--r-- | classes/package.bbclass | 6 |
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 |