1635e0e46SAndrew Geissler#
2*92b42cb3SPatrick Williams# Copyright OpenEmbedded Contributors
3*92b42cb3SPatrick Williams#
4635e0e46SAndrew Geissler# SPDX-License-Identifier: GPL-2.0-only
5635e0e46SAndrew Geissler#
6635e0e46SAndrew Geissler
7635e0e46SAndrew Geisslerfrom oe.manifest import Manifest
8635e0e46SAndrew Geissler
96ce62a20SAndrew Geisslerclass PkgManifest(Manifest):
10635e0e46SAndrew Geissler    def create_initial(self):
11635e0e46SAndrew Geissler        with open(self.initial_manifest, "w+") as manifest:
12635e0e46SAndrew Geissler            manifest.write(self.initial_manifest_file_header)
13635e0e46SAndrew Geissler
14635e0e46SAndrew Geissler            for var in self.var_maps[self.manifest_type]:
15635e0e46SAndrew Geissler                pkg_list = self.d.getVar(var)
16635e0e46SAndrew Geissler
17635e0e46SAndrew Geissler                if pkg_list is None:
18635e0e46SAndrew Geissler                    continue
19635e0e46SAndrew Geissler
20635e0e46SAndrew Geissler                for pkg in pkg_list.split():
21635e0e46SAndrew Geissler                    manifest.write("%s,%s\n" %
22635e0e46SAndrew Geissler                                   (self.var_maps[self.manifest_type][var], pkg))
23635e0e46SAndrew Geissler
24635e0e46SAndrew Geissler    def create_final(self):
25635e0e46SAndrew Geissler        pass
26635e0e46SAndrew Geissler
27635e0e46SAndrew Geissler    def create_full(self, pm):
28635e0e46SAndrew Geissler        pass
29