Don't try reading lines from directories

This commit is contained in:
Daniel Martí 2015-04-17 13:02:47 +02:00
parent d1d257bef4
commit 3f9d6b2947
2 changed files with 6 additions and 0 deletions

View file

@ -434,6 +434,8 @@ def adapt_gradle(build_dir):
if not filename.endswith('.gradle'):
continue
path = os.path.join(root, filename)
if not os.path.isfile(path):
continue
logging.debug("Adapting %s at %s" % (filename, path))
FDroidPopen(['sed', '-i',