コード例 #1
0
    def getExpectedSourcesPaths(self):
        """See IDistributionMirror"""
        paths = []
        for series in self.distribution.series:
            for pocket, suffix in pocketsuffix.items():
                for component in series.components:
                    # Skip sources for series which are obsolete and ones
                    # which were not on the mirror on its last probe.
                    if (series.status == SeriesStatus.OBSOLETE
                            and not self._getMirrorDistroSeriesSource(
                                series, pocket, component)):
                        continue

                    path = ('dists/%s%s/%s/source/Sources.gz' %
                            (series.name, suffix, component.name))
                    paths.append((series, pocket, component, path))
        return paths
コード例 #2
0
    def getExpectedSourcesPaths(self):
        """See IDistributionMirror"""
        paths = []
        for series in self.distribution.series:
            for pocket, suffix in pocketsuffix.items():
                for component in series.components:
                    # Skip sources for series which are obsolete and ones
                    # which were not on the mirror on its last probe.
                    if (series.status == SeriesStatus.OBSOLETE and
                        not self._getMirrorDistroSeriesSource(
                            series, pocket, component)):
                        continue

                    path = ('dists/%s%s/%s/source/Sources.gz'
                            % (series.name, suffix, component.name))
                    paths.append((series, pocket, component, path))
        return paths
コード例 #3
0
    def getExpectedPackagesPaths(self):
        """See IDistributionMirror"""
        paths = []
        for series in self.distribution.series:
            for pocket, suffix in pocketsuffix.items():
                for component in series.components:
                    for arch_series in series.architectures:
                        # Skip unsupported series and unofficial architectures
                        # for official series and ones which were not on the
                        # mirror on its last probe.
                        if ((series.status == SeriesStatus.OBSOLETE
                             or not arch_series.official)
                                and not self._getMirrorDistroArchSeries(
                                    arch_series, pocket, component)):
                            continue

                        path = ('dists/%s%s/%s/binary-%s/Packages.gz' %
                                (series.name, suffix, component.name,
                                 arch_series.architecturetag))
                        paths.append((arch_series, pocket, component, path))
        return paths
コード例 #4
0
    def getExpectedPackagesPaths(self):
        """See IDistributionMirror"""
        paths = []
        for series in self.distribution.series:
            for pocket, suffix in pocketsuffix.items():
                for component in series.components:
                    for arch_series in series.architectures:
                        # Skip unsupported series and unofficial architectures
                        # for official series and ones which were not on the
                        # mirror on its last probe.
                        if ((series.status == SeriesStatus.OBSOLETE or
                                not arch_series.official) and
                                not self._getMirrorDistroArchSeries(
                                    arch_series, pocket, component)):
                            continue

                        path = ('dists/%s%s/%s/binary-%s/Packages.gz'
                                % (series.name, suffix, component.name,
                                   arch_series.architecturetag))
                        paths.append((arch_series, pocket, component, path))
        return paths