diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2007-03-29 12:57:43 +0000 |
---|---|---|
committer | Philipp Zabel <philipp.zabel@gmail.com> | 2007-03-29 12:57:43 +0000 |
commit | 7ca9b39e2634a00c8af78f84f14fca369d946811 (patch) | |
tree | 6b3063b8b4b1083ed6bf5c25857591277ae3e9b9 /classes/package_deb.bbclass | |
parent | 427c202b3f3419a517b12a75774d6ad2837243e3 (diff) |
package_deb.bbclass: add epoch support
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']]) |