From c663b9b6e687fa268f1413d6e7f28899c5d79114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 4 Jul 2013 13:54:59 +0200 Subject: [PATCH] Warn about nonexistent subdirs in RM --- fdroidserver/checkupdates.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index bf461993..53963837 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -139,6 +139,9 @@ def check_repomanifest(app, sdk_path, branch=None): if 'subdir' in app['builds'][-1]: build_dir = os.path.join(build_dir, app['builds'][-1]['subdir']) + if !os.path.isdir(build_dir): + return (None, "Subdir '" + app['builds'][-1]['subdir'] + "'is not a valid directory") + version, vercode, package = common.parse_androidmanifest(build_dir) if not package: return (None, "Couldn't find package ID")