def __init__(self, bug, user=None, password=None, cache=False, nobuild=False, other_BZ=None): """ Constructor. :arg bug, the bug number on bugzilla :kwarg user, the username with which to log in in bugzilla. :kwarg password, the password associated with this account. :kwarg cache, boolean specifying whether the spec and srpm should be re-downloaded or not. :kwarg nobuild, boolean specifying whether to build or not the package. :kwarg other_BZ, url of an eventual other bugzilla system. """ Helpers.__init__(self, cache, nobuild) self.bug_num = bug self.spec_url = None self.srpm_url = None self.spec_file = None self.srpm_file = None self.log = get_logger() if other_BZ: self.bugzilla = Bugzilla(url=other_BZ + '/xmlrpc.cgi') else: self.bugzilla = Bugzilla(url=BZ_URL) self.log.info("Trying bugzilla cookies for authentication") self.user = user self.bug = self.bugzilla.getbug(self.bug_num)
def __init__(self, base, plugin_path): Helpers.__init__(self) self.plugin_path = plugin_path self.version = None self.spec = base.spec self.srpm = base.srpm self.sources = base.sources self.encoder = ReviewJSONEncoder() self.decoder = JSONDecoder() self.results = [] self.plug_in = None self.plug_out = None self.plug_err = None
def __init__(self, bug, user=None, password=None): """ Constructor. :arg bug, the bug number on bugzilla :kwarg user, the username with which to log in in bugzilla. :kwarg password, the password associated with this account. be re-downloaded or not. """ Helpers.__init__(self) self.bug_num = bug self.spec_url = None self.srpm_url = None self.spec_file = None self.srpm_file = None self.log = get_logger() if Settings.other_bz: self.bugzilla = Bugzilla(url=Settings.other_bz + '/xmlrpc.cgi') else: self.bugzilla = Bugzilla(url=BZ_URL) self.log.info("Trying bugzilla cookies for authentication") self.user = user self.bug = self.bugzilla.getbug(self.bug_num)