mirror of
https://github.com/munki/munki.git
synced 2026-04-21 20:18:20 -05:00
If the swupd dir does not exist, create it.
This commit is contained in:
@@ -122,6 +122,8 @@ class AppleUpdates(object):
|
||||
self._managed_install_dir = munkicommon.pref('ManagedInstallDir')
|
||||
|
||||
real_cache_dir = os.path.join(self._managed_install_dir, 'swupd')
|
||||
if not os.path.isdir(real_cache_dir):
|
||||
os.mkdir(real_cache_dir)
|
||||
# symlink to work around an issue with paths containing spaces
|
||||
# in 10.8.2's SoftwareUpdate
|
||||
self.cache_dir = os.path.join('/tmp', 'munki_swupd_cache')
|
||||
|
||||
Reference in New Issue
Block a user