def __init__(self):
     Package.__init__(self)
     #self.arch = ""       #-\
     #self.name = ""       #--\
     #self.version = ""    #---- This info is available only in XML
     #self.epoch = ""      #--/
     #self.release = ""    #-/
     self.changelogs = []  # [(author, date, text), ...]
Exemple #2
0
 def __init__(self):
     Package.__init__(self)
     #self.arch = ""       #-\
     #self.name = ""       #--\
     #self.version = ""    #---- This information is available only in XML
     #self.epoch = ""      #--/
     #self.release = ""    #-/
     self.files = set()
     self.dirs = set()
     self.ghosts = set()
    def __init__(self):
        Package.__init__(self)
        self.pkgkey = ""
        #self.checksum = ""
        #self.name = ""
        #self.epoch = ""
        #self.version = ""
        #self.release = ""
        #self.arch = ""
        self.summary = ""
        self.description = ""
        self.url = ""
        self.time_file = ""
        self.time_build = ""
        self.license = ""
        self.vendor = ""
        self.group = ""
        self.buildhost = ""
        self.sourcerpm = ""
        self.header_start = ""
        self.header_end = ""
        self.packager = ""
        self.size_package = ""
        self.size_installed = ""
        self.size_archive = ""
        self.location = ""
        self.location_base = ""
        self.checksum_type = ""
        self.provides = set([])  # set([('fn', flags, epoch, ver, rel), ...])
        self.conflicts = set([])  # -||-
        self.obsoletes = set([])  # -||-
        self.requires = set([]) # set([(fn, flags, epoch, ver, rel, pre), ...])
        # ^^^ It's because there can be multiple files with the
        #     same name, but different attributes
        self.files = set()  # primary_files
        self.dirs = set()  # primary_dirs
        self.ghosts = set()  # primary_ghosts

        # Let's diff all of out attributes
        if not self.DIFF_ATTR:
            self.DIFF_ATTR = self.__dict__.keys()