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:
Lubomír Sedlář 2019-08-01 10:03:58 +02:00
parent 6fa478e688
commit fe2df01e8b
2 changed files with 0 additions and 8 deletions

View File

@ -641,7 +641,6 @@ def populate_global_pkgset(compose, koji_wrapper, path_prefix, event):
# tag - we do not have to merge in this case... # tag - we do not have to merge in this case...
variant.pkgsets.add(compose_tag) variant.pkgsets.add(compose_tag)
# TODO pickle pkgset to disk # TODO pickle pkgset to disk
# TODO save pkgset file list
# TODO save pkgset file cache # TODO save pkgset file cache
pkgsets.append( pkgsets.append(
MaterializedPackageSet.create( MaterializedPackageSet.create(

View File

@ -15,7 +15,6 @@
import os import os
from six.moves import cPickle as pickle
from kobo.shortcuts import run from kobo.shortcuts import run
@ -120,18 +119,12 @@ def get_pkgset_from_repos(compose):
def populate_global_pkgset(compose, file_list, path_prefix): def populate_global_pkgset(compose, file_list, path_prefix):
ALL_ARCHES = get_all_arches(compose) 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") compose.log_info("Populating the global package set from a file list")
pkgset = pungi.phases.pkgset.pkgsets.FilelistPackageSet( pkgset = pungi.phases.pkgset.pkgsets.FilelistPackageSet(
"repos", compose.conf["sigkeys"], logger=compose._logger, arches=ALL_ARCHES "repos", compose.conf["sigkeys"], logger=compose._logger, arches=ALL_ARCHES
) )
pkgset.populate(file_list) 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 return pkgset