chiark / gitweb /
Warn about nonexistent subdirs in RM
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 4 Jul 2013 11:54:59 +0000 (13:54 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 4 Jul 2013 11:54:59 +0000 (13:54 +0200)
fdroidserver/checkupdates.py

index bf4619930cf50d3080b9bad740960259bc48df65..53963837b77ec890d226ab391a193595bb6770cc 100644 (file)
@@ -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")