mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
When using placed srclibs, don't fail if proj.prop doesn't exist
This commit is contained in:
parent
03cc679dc8
commit
dfd0ecc740
1 changed files with 4 additions and 2 deletions
|
@ -1497,6 +1497,8 @@ def place_srclib(root_dir, number, libpath):
|
||||||
relpath = os.path.relpath(libpath, root_dir)
|
relpath = os.path.relpath(libpath, root_dir)
|
||||||
proppath = os.path.join(root_dir, 'project.properties')
|
proppath = os.path.join(root_dir, 'project.properties')
|
||||||
|
|
||||||
|
lines = []
|
||||||
|
if os.path.isfile(proppath):
|
||||||
with open(proppath, "r") as o:
|
with open(proppath, "r") as o:
|
||||||
lines = o.readlines()
|
lines = o.readlines()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue