summaryrefslogtreecommitdiffstats
path: root/meta/classes/toaster.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r--meta/classes/toaster.bbclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 6a65ecb957..9518ddf7a4 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -126,11 +126,12 @@ def _toaster_dumpdata(pkgdatadir, d):
126 datadir = os.path.join(pkgdatadir, 'runtime') 126 datadir = os.path.join(pkgdatadir, 'runtime')
127 127
128 # scan and send data for each generated package 128 # scan and send data for each generated package
129 for datafile in os.listdir(datadir): 129 if os.path.exists(datadir):
130 if not datafile.endswith('.packaged'): 130 for datafile in os.listdir(datadir):
131 lpkgdata = _toaster_load_pkgdatafile(datadir, datafile) 131 if not datafile.endswith('.packaged'):
132 # Fire an event containing the pkg data 132 lpkgdata = _toaster_load_pkgdatafile(datadir, datafile)
133 bb.event.fire(bb.event.MetadataEvent("SinglePackageInfo", lpkgdata), d) 133 # Fire an event containing the pkg data
134 bb.event.fire(bb.event.MetadataEvent("SinglePackageInfo", lpkgdata), d)
134 135
135python toaster_package_dumpdata() { 136python toaster_package_dumpdata() {
136 _toaster_dumpdata(d.getVar('PKGDESTWORK'), d) 137 _toaster_dumpdata(d.getVar('PKGDESTWORK'), d)