summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2007-03-29 12:48:15 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2007-03-29 12:48:15 +0000
commit0bb019850b4d6e84a81c4b06485280a02e1b5a72 (patch)
tree6073a002dc3bd22f486916cfa550eb63b8631176 /classes
parentfd6a046d64f69c38be873309680b16c656dbb1f0 (diff)
package_ipk.bbclass: add epoch support
Diffstat (limited to 'classes')
-rw-r--r--classes/package_ipk.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass
index 70bcdf6b7f..19c082d978 100644
--- a/classes/package_ipk.bbclass
+++ b/classes/package_ipk.bbclass
@@ -142,7 +142,11 @@ python do_package_ipk () {
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']])