2015-02-10 13:19:34 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2016-09-21 12:49:13 +00:00
|
|
|
# along with this program; if not, see <https://gnu.org/licenses/>.
|
2015-02-10 13:19:34 +00:00
|
|
|
|
|
|
|
|
2015-03-12 21:12:38 +00:00
|
|
|
from pungi.phases.base import PhaseBase
|
2015-02-10 13:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PkgsetPhase(PhaseBase):
|
|
|
|
"""PKGSET"""
|
|
|
|
name = "pkgset"
|
|
|
|
|
2019-09-18 11:54:18 +00:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super(PkgsetPhase, self).__init__(*args, **kwargs)
|
|
|
|
self.package_sets = []
|
|
|
|
|
2015-02-10 13:19:34 +00:00
|
|
|
def run(self):
|
|
|
|
pkgset_source = "PkgsetSource%s" % self.compose.conf["pkgset_source"]
|
2017-09-05 08:01:21 +00:00
|
|
|
from .source import PkgsetSourceContainer
|
|
|
|
from . import sources
|
2015-02-10 13:19:34 +00:00
|
|
|
PkgsetSourceContainer.register_module(sources)
|
|
|
|
container = PkgsetSourceContainer()
|
|
|
|
SourceClass = container[pkgset_source]
|
2019-07-26 14:06:53 +00:00
|
|
|
self.package_sets, self.path_prefix = SourceClass(self.compose)()
|