mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-09-21 12:15:24 -04:00
When using placed srclibs, don't fail if proj.prop doesn't exist
This commit is contained in:
1 parent
03cc679dc8
commit
dfd0ecc740
1 file changed
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user