This file is indexed.

/usr/share/pyshared/lpltk/distro_series.py is in python-launchpadlib-toolkit 2.3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/usr/bin/python

from milestones               import Milestones
from person                   import Person
from utils                    import (
    o2str,
    typecheck_Entry
    )
from publication              import SourcePackagePublication

class DistroSeries(object):
    # __init__
    #
    def __init__(self, service, bug, lp_distro_series):
        self.__service           = service
        self.__bug               = bug
        self.__lp_archive        = None
        self.__lp_distro_series  = typecheck_Entry(lp_distro_series)

        self.__date_created      = None
        self.__date_released     = None
        self.__owner             = None
        self.__status            = None
        self.__driver            = None
        self.__active            = None
        self.__supported         = None
        self.__description       = None
        self.__display_name      = None
        self.__full_series_name  = None
        self.__name              = None
        self.__summary           = None
        self.__title             = None
        self.__active_milestones = None

    @property
    def date_created(self):
        if self.__date_created == None:
            self.__date_created = self.__lp_distro_series.date_created
        return self.__date_created

    @property
    def date_released(self):
        if self.__date_released == None:
            self.__date_released = self.__lp_distro_series.datereleased
        return self.__date_released

    @property
    def owner(self):
        if self.__owner == None:
            self.__owner = Person(self.__bug, self.__lp_distro_series.owner)
        return self.__owner

    @property
    def driver(self):
        if self.__driver == None:
            self.__driver = Person(self.__bug, self.__lp_distro_series.driver)
        return self.__driver

    @property
    def status(self):
        if self.__status == None:
            self.__status = self.__lp_distro_series.status
        return self.__status

    @property
    def active(self):
        if self.__active == None:
            self.__active = self.__lp_distro_series.active
        return self.__active

    @property
    def supported(self):
        if self.__supported == None:
            self.__supported = self.__lp_distro_series.supported
        return self.__supported

    @property
    def description(self):
        if self.__description == None:
            self.__description = o2str(self.__lp_distro_series.description)
        return self.__description

    @property
    def display_name(self):
        if self.__display_name == None:
            self.__display_name = o2str(self.__lp_distro_series.displayname)
        return self.__display_name

    @property
    def full_series_name(self):
        if self.__full_series_name == None:
            self.__full_series_name = o2str(self.__lp_distro_series.fullseriesname)
        return self.__full_series_name

    @property
    def name(self):
        if self.__name == None:
            self.__name = o2str(self.__lp_distro_series.name)
        return self.__name

    @property
    def summary(self):
        if self.__summary == None:
            self.__summary = o2str(self.__lp_distro_series.summary)
        return self.__summary

    @property
    def title(self):
        if self.__title == None:
            self.__title = o2str(self.__lp_distro_series.title)
        return self.__title

    @property
    def active_milestones(self):
        if self.__active_milestones == None:
            self.__active_milestones = Milestones(self.__service,
                self.__lp_distro_series.active_milestones)
        return self.__active_milestones

    def get_source_publications(self, source_package_name):
        '''Returns all Release/Proposed/etc. publications for source package'''
        if self.__lp_archive == None:
            lp_distro = self.__lp_distro_series.distribution
            self.__lp_archive = lp_distro.getArchive(name='primary')

        try:
            # This returns the latest version for each pocket (Updates, Security, etc.)
            pubs = self.__lp_archive.getPublishedSources(
                source_name=source_package_name,
                exact_match=True,
                status='Published',
                distro_series=self.__lp_distro_series)

            for pub in pubs:
                yield SourcePackagePublication(pub)
        except IndexError:
            pass

    def get_package_uploads(self, series):
        pass

# vi:set ts=4 sw=4 expandtab: