def fetcher(id_, target): return requests_fetcher(repository_url, id_, target, work_dir)
def fetcher(id, target): if repository_url is None: raise ValidationError("ERROR: Non-local package {} but no repository url given.".format(id)) return requests_fetcher(repository_url, id, target, os.getcwd())
def fetcher(id, target): if repository_url is None: print("ERROR: Non-local package {} but no repository url given.".format(repository_url)) sys.exit(1) return requests_fetcher(repository_url, id, target, os.getcwd())
def fetcher(id, target): return requests_fetcher(arguments['--repository-url'], id, target, os.getcwd())
def fetcher(id, target): if repository_url is None: print("ERROR: Non-local package {} but no repository url given.". format(repository_url)) sys.exit(1) return requests_fetcher(repository_url, id, target, os.getcwd())