mirror of
https://github.com/munki/munki.git
synced 2026-05-02 10:19:32 -05:00
Print better error messages when repo path is missing expected directories.
git-svn-id: http://munki.googlecode.com/svn/trunk@894 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -73,6 +73,7 @@ def repoAvailable():
|
||||
return False
|
||||
for subdir in ['catalogs', 'manifests', 'pkgs', 'pkgsinfo']:
|
||||
if not os.path.exists(os.path.join(repo_path, subdir)):
|
||||
print >> sys.stderr, "%s is missing %s" % (repo_path, subdir)
|
||||
return False
|
||||
# if we get this far, the repo path looks OK
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user