mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
parent
0e07dd0501
commit
ecfbdef60f
1 changed files with 2 additions and 2 deletions
|
@ -1616,7 +1616,7 @@ def manifest_paths(app_dir, flavours):
|
||||||
def fetch_real_name(app_dir, flavours):
|
def fetch_real_name(app_dir, flavours):
|
||||||
"""Retrieve the package name. Returns the name, or None if not found."""
|
"""Retrieve the package name. Returns the name, or None if not found."""
|
||||||
for path in manifest_paths(app_dir, flavours):
|
for path in manifest_paths(app_dir, flavours):
|
||||||
if not path.endswith('.xml') or not os.path.isfile(path):
|
if not path.suffix == '.xml' or not path.is_file():
|
||||||
continue
|
continue
|
||||||
logging.debug("fetch_real_name: Checking manifest at " + path)
|
logging.debug("fetch_real_name: Checking manifest at " + path)
|
||||||
try:
|
try:
|
||||||
|
@ -1725,7 +1725,7 @@ def parse_androidmanifests(paths, app):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
for path in paths:
|
for path in paths:
|
||||||
if not os.path.isfile(path):
|
if not path.is_file():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logging.debug(_("Parsing manifest at '{path}'").format(path=path))
|
logging.debug(_("Parsing manifest at '{path}'").format(path=path))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue