diff options
author | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2007-03-30 02:13:29 +0000 |
---|---|---|
committer | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2007-03-30 02:13:29 +0000 |
commit | df072e35c156fcedce2e7488efd9651f2fe6773c (patch) | |
tree | c1e00f7392d09a019c54d3aec7112ff050be7a78 /classes/package_deb.bbclass | |
parent | 8fc5afd475c8c2a1fd4de81937cd736c5931bb7c (diff) | |
parent | a5ab4c711b23d99dd9d252d5c08fa60dd76c493d (diff) |
merge of '338ea31d4809a6db514f8ee9dbd35db2c426e83f'
and '33ef958347850ae3830b2326a4476282484717bd'
Diffstat (limited to 'classes/package_deb.bbclass')
-rw-r--r-- | classes/package_deb.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass index 9697426d5d..388f9819bd 100644 --- a/classes/package_deb.bbclass +++ b/classes/package_deb.bbclass @@ -138,7 +138,11 @@ python do_package_deb () { raise bb.build.FuncFailed("unable to open control file for writing.") fields = [] - fields.append(["Version: %s-%s\n", ['PV', 'PR']]) + pe = bb.data.getVar('PE', d, 1) + if pe and int(pe) > 0: + fields.append(["Version: %s:%s-%s\n", ['PE', 'PV', 'PR']]) + else: + fields.append(["Version: %s-%s\n", ['PV', 'PR']]) fields.append(["Description: %s\n", ['DESCRIPTION']]) fields.append(["Section: %s\n", ['SECTION']]) fields.append(["Priority: %s\n", ['PRIORITY']]) |