Patchwork [3/3] ipkg: use INC_PR [1]

login
register
mail settings
Submitter Paul Menzel
Date March 22, 2011, 11:05 a.m.
Message ID <1300791931.26064.2.camel@mattotaupa>
Download mbox | patch
Permalink /patch/1679/
State New, archived
Headers show

Comments

Paul Menzel - March 22, 2011, 11:05 a.m.
Date: Tue, 22 Mar 2011 11:31:32 +0100

[1] http://openembedded.org/index.php/Styleguide#PR_variables_with_recipes_that_use_INC_files

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
 recipes/ipkg/ipkg.inc         |    2 ++
 recipes/ipkg/ipkg_0.99.163.bb |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/recipes/ipkg/ipkg.inc b/recipes/ipkg/ipkg.inc
index b4ccef3..27912d4 100644
--- a/recipes/ipkg/ipkg.inc
+++ b/recipes/ipkg/ipkg.inc
@@ -4,6 +4,8 @@  SECTION = "base"
 LICENSE = "GPL"
 PROVIDES = "virtual/ipkg libipkg"
 
+INC_PR = "r9"
+
 SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \
         file://update_version_comparision.patch \
         file://enable_debversion.patch \
diff --git a/recipes/ipkg/ipkg_0.99.163.bb b/recipes/ipkg/ipkg_0.99.163.bb
index f89a274..04c06b6 100644
--- a/recipes/ipkg/ipkg_0.99.163.bb
+++ b/recipes/ipkg/ipkg_0.99.163.bb
@@ -1,5 +1,5 @@ 
 include ipkg.inc
-PR = "r9"
+PR = "${INC_PR}.0"
 
 S = "${WORKDIR}/ipkg-${PV}"