Remove pickling from source repos
The pickled pkgset was only ever used for debug mode. We don't use that anymore. Let's stop writing files that are not used anywhere. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
6fa478e688
commit
fe2df01e8b
@ -641,7 +641,6 @@ def populate_global_pkgset(compose, koji_wrapper, path_prefix, event):
|
||||
# tag - we do not have to merge in this case...
|
||||
variant.pkgsets.add(compose_tag)
|
||||
# TODO pickle pkgset to disk
|
||||
# TODO save pkgset file list
|
||||
# TODO save pkgset file cache
|
||||
pkgsets.append(
|
||||
MaterializedPackageSet.create(
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
|
||||
import os
|
||||
from six.moves import cPickle as pickle
|
||||
|
||||
from kobo.shortcuts import run
|
||||
|
||||
@ -120,18 +119,12 @@ def get_pkgset_from_repos(compose):
|
||||
def populate_global_pkgset(compose, file_list, path_prefix):
|
||||
ALL_ARCHES = get_all_arches(compose)
|
||||
|
||||
global_pkgset_path = os.path.join(compose.paths.work.topdir(arch="global"), "packages.pickle")
|
||||
|
||||
compose.log_info("Populating the global package set from a file list")
|
||||
pkgset = pungi.phases.pkgset.pkgsets.FilelistPackageSet(
|
||||
"repos", compose.conf["sigkeys"], logger=compose._logger, arches=ALL_ARCHES
|
||||
)
|
||||
pkgset.populate(file_list)
|
||||
with open(global_pkgset_path, "wb") as f:
|
||||
pickle.dump(pkgset, f, protocol=pickle.HIGHEST_PROTOCOL)
|
||||
|
||||
# write global package list
|
||||
pkgset.save_file_list(compose.paths.work.package_list(arch="global"), remove_path_prefix=path_prefix)
|
||||
return pkgset
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user