def __init__( self, rfs, log, arch, notifier=None, norecommend=False, noauth=True): # pylint: disable=too-many-arguments sys.stdout = open(log, 'a', buffering=0) sys.stderr = open(log, 'a', buffering=0) self.logfile = open(log, 'a', buffering=0) InChRootObject.__init__(self, rfs) self.notifier = notifier config.set("APT::Architecture", arch) if norecommend: config.set("APT::Install-Recommends", "0") else: config.set("APT::Install-Recommends", "1") if noauth: config.set("APT::Get::AllowUnauthenticated", "1") else: config.set("APT::Get::AllowUnauthenticated", "0") self.cache = Cache(progress=ElbeOpProgress()) self.cache.open(progress=ElbeOpProgress())
def __init__(self, rfs, log, arch, notifier=None, norecommend=False, noauth=True): sys.stdout = open(log, 'a', buffering=0) sys.stderr = open(log, 'a', buffering=0) self.logfile = open(log, 'a', buffering=0) InChRootObject.__init__(self, rfs) self.notifier = notifier config.set("APT::Architecture", arch) if norecommend: config.set("APT::Install-Recommends", "1") else: config.set("APT::Install-Recommends", "0") if noauth: config.set("APT::Get::AllowUnauthenticated", "1") else: config.set("APT::Get::AllowUnauthenticated", "0") self.cache = Cache(progress=ElbeOpProgress()) self.cache.open(progress=ElbeOpProgress())
def __init__( self, rfs, logpath, arch, notifier=None, norecommend = False, noauth = True ): self.log = ASCIIDocLog(logpath) self.notifier = notifier InChRootObject.__init__(self, rfs) config.set ("APT::Architecture", arch) if norecommend: config.set ("APT::Install-Recommends", "1") else: config.set ("APT::Install-Recommends", "0") if noauth: config.set ("APT::Get::AllowUnauthenticated", "1") else: config.set ("APT::Get::AllowUnauthenticated", "0") self.cache = Cache() self.cache.open()
def __init__(self, rfs, arch, notifier=None, norecommend=False, noauth=True): # pylint: disable=too-many-arguments InChRootObject.__init__(self, rfs) self.notifier = notifier config.set("APT::Architecture", arch) if norecommend: config.set("APT::Install-Recommends", "0") else: config.set("APT::Install-Recommends", "1") if noauth: config.set("APT::Get::AllowUnauthenticated", "1") else: config.set("APT::Get::AllowUnauthenticated", "0") self.cache = Cache(progress=ElbeOpProgress()) self.cache.open(progress=ElbeOpProgress())