def __init__(self, batch, backend, queue_timeout=600): GenericPackageImport.__init__(self, batch, backend) # A composite key of the name, evr, arch plus org_id self.packages = {} self.ignoreMissing = 0 self.cve = {} self.queue_timeout = queue_timeout self.file_types = {}
def _processPackage(self, package): GenericPackageImport._processPackage(self, package) # Process channels channels = [] channelHash = {} for channel in package['channels']: channelName = channel['label'] if not channelHash.has_key(channelName): channels.append(channelName) channelHash[channelName] = None self.channels[channelName] = None # Replace the channel list with the uniquified list package.channels = channels
def __init__(self, batch, backend, caller=None, strict=0, repogen=True): # If strict, the set of packages that was passed in will be the only # one in the channels - everything else will be unlinked GenericPackageImport.__init__(self, batch, backend) self.affected_channels = [] # A hash keyed on the channel id, and with tuples # (added_packages, removed_packages) as values (packages are package # ids) self.affected_channel_packages = {} if not caller: self.caller = "backend.(unknown)" else: self.caller = caller self._strict_subscription = strict self.repogen = repogen
def __init__(self, batch, backend): GenericPackageImport.__init__(self, batch, backend) self._cache = syncCache.ShortPackageCache() self._data = []