check for file exists
This commit is contained in:
@@ -42,8 +42,11 @@ def find_all_files_for_pkg(name, repo):
|
|||||||
|
|
||||||
|
|
||||||
def get_failed_packages(repo):
|
def get_failed_packages(repo):
|
||||||
|
if os.path.exists(os.path.join(config["basedir"]["repo"], repo + "_failed.txt")):
|
||||||
with open(os.path.join(config["basedir"]["repo"], repo + "_failed.txt")) as p:
|
with open(os.path.join(config["basedir"]["repo"], repo + "_failed.txt")) as p:
|
||||||
return p.read().splitlines()
|
return p.read().splitlines()
|
||||||
|
else:
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
def build(pkgbuild, repo):
|
def build(pkgbuild, repo):
|
||||||
|
Reference in New Issue
Block a user