summaryrefslogtreecommitdiffstats
path: root/meta/classes/prexport.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/prexport.bbclass')
-rw-r--r--meta/classes/prexport.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/prexport.bbclass b/meta/classes/prexport.bbclass
index b990c2be5e..6b9d540989 100644
--- a/meta/classes/prexport.bbclass
+++ b/meta/classes/prexport.bbclass
@@ -24,6 +24,16 @@ python prexport_handler () {
24 bb.warn("prexport_handler: No AUTOPR values found for %s" % ver) 24 bb.warn("prexport_handler: No AUTOPR values found for %s" % ver)
25 return 25 return
26 oe.prservice.prserv_export_tofile(e.data, None, datainfo, False) 26 oe.prservice.prserv_export_tofile(e.data, None, datainfo, False)
27 if 'AUTOINC' in ver:
28 import re
29 srcpv = bb.fetch2.get_srcrev(e.data)
30 base_ver = "AUTOINC-%s" % ver[:ver.find(srcpv)]
31 e.data.setVar('PRSERV_DUMPOPT_VERSION', base_ver)
32 retval = oe.prservice.prserv_dump_db(e.data)
33 if not retval:
34 bb.fatal("prexport_handler: export failed!")
35 (metainfo, datainfo) = retval
36 oe.prservice.prserv_export_tofile(e.data, None, datainfo, False)
27 elif isinstance(e, bb.event.ParseStarted): 37 elif isinstance(e, bb.event.ParseStarted):
28 import bb.utils 38 import bb.utils
29 import oe.prservice 39 import oe.prservice