mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
Fix project.properties dependency issue
Correctly place scrlib references also
in the case there is no project.properties file
present in the original repository.
This commit fixes a problem, which was introduced with
021df3c424
: If no
project.properties file exists in the original
project's source repo, place_srclib will not place
a dependency --- even if there should be one:
> if not os.path.isfile(proppath):
> return
Example app: fdroiddata/metadata/org.berlin_vegan.bvapp.txt
This commit is contained in:
parent
d1d257bef4
commit
96e4062bcf
1 changed files with 3 additions and 5 deletions
|
@ -1886,9 +1886,7 @@ def place_srclib(root_dir, number, libpath):
|
||||||
proppath = os.path.join(root_dir, 'project.properties')
|
proppath = os.path.join(root_dir, 'project.properties')
|
||||||
|
|
||||||
lines = []
|
lines = []
|
||||||
if not os.path.isfile(proppath):
|
if os.path.isfile(proppath):
|
||||||
return
|
|
||||||
|
|
||||||
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