mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. (From OE-Core rev: f8ee8bc737a982001b9fd0ad441495a52f12e9b4) Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
27 lines
695 B
Python
27 lines
695 B
Python
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
|
|
from oe.manifest import Manifest
|
|
|
|
class DpkgManifest(Manifest):
|
|
def create_initial(self):
|
|
with open(self.initial_manifest, "w+") as manifest:
|
|
manifest.write(self.initial_manifest_file_header)
|
|
|
|
for var in self.var_maps[self.manifest_type]:
|
|
pkg_list = self.d.getVar(var)
|
|
|
|
if pkg_list is None:
|
|
continue
|
|
|
|
for pkg in pkg_list.split():
|
|
manifest.write("%s,%s\n" %
|
|
(self.var_maps[self.manifest_type][var], pkg))
|
|
|
|
def create_final(self):
|
|
pass
|
|
|
|
def create_full(self, pm):
|
|
pass
|