diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-31 22:51:19 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-31 22:51:19 +0000 |
commit | c9dc5f07a7bbeb74b625c5114ea2bfbc94ccc69f (patch) | |
tree | 1962c4a32b81b6540ea00671c4ea61975a705f88 /meta/classes/package_deb.bbclass | |
parent | 8a5b785a6de3cab51c553edbdddf2c6cf690d1e1 (diff) | |
download | poky-c9dc5f07a7bbeb74b625c5114ea2bfbc94ccc69f.tar.gz |
classes/conf: Merge missing package epoch (PE) support (from OE), also make OE package field sane
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1839 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 907fbd9ebf..655c700c3f 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -141,13 +141,17 @@ python do_package_deb () { | |||
141 | raise bb.build.FuncFailed("unable to open control file for writing.") | 141 | raise bb.build.FuncFailed("unable to open control file for writing.") |
142 | 142 | ||
143 | fields = [] | 143 | fields = [] |
144 | fields.append(["Version: %s-%s\n", ['PV', 'PR']]) | 144 | pe = bb.data.getVar('PE', d, 1) |
145 | if pe and int(pe) > 0: | ||
146 | fields.append(["Version: %s:%s-%s\n", ['PE', 'PV', 'PR']]) | ||
147 | else: | ||
148 | fields.append(["Version: %s-%s\n", ['PV', 'PR']]) | ||
145 | fields.append(["Description: %s\n", ['DESCRIPTION']]) | 149 | fields.append(["Description: %s\n", ['DESCRIPTION']]) |
146 | fields.append(["Section: %s\n", ['SECTION']]) | 150 | fields.append(["Section: %s\n", ['SECTION']]) |
147 | fields.append(["Priority: %s\n", ['PRIORITY']]) | 151 | fields.append(["Priority: %s\n", ['PRIORITY']]) |
148 | fields.append(["Maintainer: %s\n", ['MAINTAINER']]) | 152 | fields.append(["Maintainer: %s\n", ['MAINTAINER']]) |
149 | fields.append(["Architecture: %s\n", ['TARGET_ARCH']]) | 153 | fields.append(["Architecture: %s\n", ['TARGET_ARCH']]) |
150 | fields.append(["OE: %s\n", ['P']]) | 154 | fields.append(["OE: %s\n", ['PN']]) |
151 | fields.append(["Homepage: %s\n", ['HOMEPAGE']]) | 155 | fields.append(["Homepage: %s\n", ['HOMEPAGE']]) |
152 | 156 | ||
153 | # Package, Version, Maintainer, Description - mandatory | 157 | # Package, Version, Maintainer, Description - mandatory |