summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-05-19 10:17:43 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-27 17:55:49 +0100
commit16f06f7135db18fcabd7e3f320fcfa88bfb5ae15 (patch)
treeb7f981f612e55feefeff15f270d2c2b3590e8c1e /meta/classes/package_ipk.bbclass
parent66d27435beb471d883355cc942f1d4489ebdad68 (diff)
downloadpoky-16f06f7135db18fcabd7e3f320fcfa88bfb5ae15.tar.gz
classes/package_xxx.class: Use PKGE/PKGV/PKGR.
Use PKGE/PKGV/PKGR to build various package feed in tasks of pacakge_write_xxx. (From OE-Core rev: c2872315905fcdf6e4bf11fe96e5ca62af3475f8) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index a3dfc73342..43170280c9 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -241,7 +241,7 @@ python do_package_ipk () {
241 except ValueError: 241 except ValueError:
242 pass 242 pass
243 if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": 243 if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1":
244 bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) 244 bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PKGV', localdata, 1), bb.data.getVar('PKGR', localdata, 1)))
245 bb.utils.unlockfile(lf) 245 bb.utils.unlockfile(lf)
246 continue 246 continue
247 247
@@ -254,11 +254,11 @@ python do_package_ipk () {
254 raise bb.build.FuncFailed("unable to open control file for writing.") 254 raise bb.build.FuncFailed("unable to open control file for writing.")
255 255
256 fields = [] 256 fields = []
257 pe = bb.data.getVar('PE', d, 1) 257 pe = bb.data.getVar('PKGE', d, 1)
258 if pe and int(pe) > 0: 258 if pe and int(pe) > 0:
259 fields.append(["Version: %s:%s-%s\n", ['PE', 'PV', 'PR']]) 259 fields.append(["Version: %s:%s-%s\n", ['PKGE', 'PKGV', 'PKGR']])
260 else: 260 else:
261 fields.append(["Version: %s-%s\n", ['PV', 'PR']]) 261 fields.append(["Version: %s-%s\n", ['PKGV', 'PKGR']])
262 fields.append(["Description: %s\n", ['DESCRIPTION']]) 262 fields.append(["Description: %s\n", ['DESCRIPTION']])
263 fields.append(["Section: %s\n", ['SECTION']]) 263 fields.append(["Section: %s\n", ['SECTION']])
264 fields.append(["Priority: %s\n", ['PRIORITY']]) 264 fields.append(["Priority: %s\n", ['PRIORITY']])