Source code for libka.kagraph.ka_graph_ppa_build_status

#!/usr/bin/python3
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long
# kate: space-indent on; indent-width 4; replace-tabs on; indent-mode python; remove-trailing-space modified;
# pylint: enable=line-too-long
# vim: expandtab ts=4

############################################################################
#   Copyright © 2017-2020 José Manuel Santamaría Lema <panfaust@gmail.com> #
#                                                                          #
#   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; either version 2 of the License, or      #
#   (at your option) any later version.                                    #
############################################################################

"""
This module just provides the KAGraphPPABuildStatus class.
"""

from libka.kagraph.ka_graph_archive_build_status import KAGraphArchiveBuildStatus

[docs] class KAGraphPPABuildStatus(KAGraphArchiveBuildStatus): """ Class to represent a graph containing a PPA build status, its difference compared with KAGraphArchiveBuildStatus is that this class doesn't consider the NEW queue (that doesn't make sense for PPAs) """ def __init__(self, dist, title=''): #Call the superclass constructor super(KAGraphPPABuildStatus, self).__init__(dist, title) #Delete the new status, we won't check the new queue for ppa builds self._package_status_list.remove(self._status_new) # pylint: disable=arguments-differ
[docs] def set_package_status_from_lp_sources_and_builds(self, all_sources, all_builds): """ Sets the package status usign the given LP info. """ #Call the superclass method with lpseries=None super(KAGraphPPABuildStatus, self).set_package_status_from_lp_sources_and_builds( all_sources, all_builds, None)
# pylint: enable=arguments-differ