summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2007-03-29 12:57:43 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2007-03-29 12:57:43 +0000
commit7ca9b39e2634a00c8af78f84f14fca369d946811 (patch)
tree6b3063b8b4b1083ed6bf5c25857591277ae3e9b9
parent427c202b3f3419a517b12a75774d6ad2837243e3 (diff)
package_deb.bbclass: add epoch support
-rw-r--r--classes/package_deb.bbclass6
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']])