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:
Greg Neagle
2010-11-08 17:39:28 +00:00
parent 486af91aa5
commit 849c79d041
+1
View File
@@ -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