From dfd0ecc740ac75efda8c1cee917afd741d2da996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 27 Jan 2014 22:34:34 +0100 Subject: [PATCH] When using placed srclibs, don't fail if proj.prop doesn't exist --- fdroidserver/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 4e4322c0..954a67f6 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1497,8 +1497,10 @@ def place_srclib(root_dir, number, libpath): relpath = os.path.relpath(libpath, root_dir) proppath = os.path.join(root_dir, 'project.properties') - with open(proppath, "r") as o: - lines = o.readlines() + lines = [] + if os.path.isfile(proppath): + with open(proppath, "r") as o: + lines = o.readlines() with open(proppath, "w") as o: placed = False