lib/gettor/utils.py
def fetchPackages(conf):
    """Fetch Tor packages from a mirror
    """
    logging.debug("Fetching package files..")
    try:
        packs = gettor.packages.Packages(conf, False)
    except IOError:
        logging.error("Error initiating package list.")
        return False
    if packs.syncWithMirror() != 0:
        logging.error("Syncing Tor packages failed.")
        return False
    else:
        logging.debug("Syncing Tor packages done.")
        return True
Fetch Tor packages from a mirror
    
Fetch Tor packages from a mirror
Fetch Tor packages from a mirror
def fetchPackages(conf):
    logging.debug("Fetching package files..")
    try:
        packs = gettor.packages.Packages(conf, False)
    except IOError:
        logging.error("Error initiating package list.")
        return False
    if packs.syncWithMirror() != 0:
        logging.error("Syncing Tor packages failed.")
        return False
    else:
        logging.debug("Syncing Tor packages done.")
        return True
def fetchPackages ( conf ) : logging . debug ( "Fetching package files.." ) try : packs = gettor . packages . Packages ( conf , False ) except IOError : logging . error ( "Error initiating package list." ) return False if packs . syncWithMirror ( ) != 0 : logging . error ( "Syncing Tor packages failed." ) return False else : logging . debug ( "Syncing Tor packages done." ) return True
Fetch Tor packages from a mirror
Fetch Tor packages from a mirror
"""Fetch Tor packages from a mirror
    """
conf