Whoops. Missed some references

This commit is contained in:
Kjell Wooding 2019-01-09 14:51:16 -05:00
parent 532077e2a3
commit 44bbd13b47

View file

@ -1,6 +1,6 @@
from sys import exit
import os
from os.path import join
def no_config(f):
f.__no_config = True
@ -244,11 +244,9 @@ class Target(object):
:Returns:
fully qualified path to updated git repo
"""
if platform is None:
raise Exception("platform is a required keyword argument")
cmd = self.buildozer.cmd
install_dir = join(self.buildozer.platform_dir, repo)
custom_dir, clone_url, clone_branch = self.path_or_git_url(repo, platform=platform, **kwargs)
custom_dir, clone_url, clone_branch = self.path_or_git_url(repo, **kwargs)
if not self.buildozer.file_exists(install_dir):
if custom_dir:
cmd('mkdir -p "{}"'.format(install_dir))