mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
Other minor file reading fixes
This commit is contained in:
parent
241a3f02ac
commit
021df3c424
@ -945,8 +945,7 @@ def get_library_references(root_dir):
|
||||
proppath = os.path.join(root_dir, 'project.properties')
|
||||
if not os.path.isfile(proppath):
|
||||
return libraries
|
||||
with open(proppath) as f:
|
||||
for line in f.readlines():
|
||||
for line in file(proppath):
|
||||
if not line.startswith('android.library.reference.'):
|
||||
continue
|
||||
path = line.split('=')[1].strip()
|
||||
@ -1884,7 +1883,9 @@ def place_srclib(root_dir, number, libpath):
|
||||
proppath = os.path.join(root_dir, 'project.properties')
|
||||
|
||||
lines = []
|
||||
if os.path.isfile(proppath):
|
||||
if not os.path.isfile(proppath):
|
||||
return
|
||||
|
||||
with open(proppath, "r") as o:
|
||||
lines = o.readlines()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user