Skip to content

Commit

Permalink
Fixed missed calls
Browse files Browse the repository at this point in the history
Result of self review
  • Loading branch information
Julian-O committed Jul 9, 2023
1 parent 310214b commit 55af42d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildozer/targets/osx.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class TargetOSX(Target):
targetname = "osx"

def ensure_sdk(self):
self.buildozer.info('Check if kivy-sdk-packager exists')
self.logger.info('Check if kivy-sdk-packager exists')
if exists(
join(self.buildozer.platform_dir, 'kivy-sdk-packager-master')):
self.buildozer.info(
self.logger.info(
'kivy-sdk-packager found at '
'{}'.format(self.buildozer.platform_dir))
return

self.buildozer.info('kivy-sdk-packager does not exist, clone it')
self.logger.info('kivy-sdk-packager does not exist, clone it')
platdir = self.buildozer.platform_dir
check_call(
('curl', '-O', '-L',
Expand All @@ -38,14 +38,14 @@ def download_kivy(self, cwd):
current_kivy_vers = self.buildozer.config.get('app', 'osx.kivy_version')

if exists('/Applications/Kivy.app'):
self.buildozer.info('Kivy found in Applications dir...')
self.logger.info('Kivy found in Applications dir...')
check_call(
('cp', '-a', '/Applications/Kivy.app',
'Kivy.app'), cwd=cwd)

else:
if not exists(join(cwd, 'Kivy.dmg')):
self.buildozer.info('Downloading kivy...')
self.logger.info('Downloading kivy...')
status_code = check_output((
'curl', '-L', '--write-out', '%{http_code}',
'-o', 'Kivy.dmg',
Expand Down

0 comments on commit 55af42d

Please sign in to comment.