1#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: GPL-2.0-only
5#
6
7from oe.manifest import Manifest
8
9class PkgManifest(Manifest):
10    def create_initial(self):
11        with open(self.initial_manifest, "w+") as manifest:
12            manifest.write(self.initial_manifest_file_header)
13
14            for var in self.var_maps[self.manifest_type]:
15                pkg_list = self.d.getVar(var)
16
17                if pkg_list is None:
18                    continue
19
20                for pkg in pkg_list.split():
21                    manifest.write("%s,%s\n" %
22                                   (self.var_maps[self.manifest_type][var], pkg))
23
24    def create_final(self):
25        pass
26
27    def create_full(self, pm):
28        pass
29