Make sure we return false if user clicks the stop button while building the package database under Snow Leopard

git-svn-id: http://munki.googlecode.com/svn/trunk@923 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-11-21 00:32:12 +00:00
parent 5be8b5ed84
commit f575542905
+2
View File
@@ -616,6 +616,8 @@ def initDatabase(forcerebuild=False):
conn.close()
#our package db isn't valid, so we should delete it
os.remove(packagedb)
return False
munkicommon.display_detail("Importing %s..." % pkg)
ImportFromPkgutil(pkg, curs)
currentpkgindex += 1