More print statement cleanup.

git-svn-id: http://munki.googlecode.com/svn/trunk@821 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-10-19 17:22:55 +00:00
parent b78ba8e03c
commit b52f45cdf0
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ def mountAdobeDmg(dmgpath):
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(pliststr, err) = proc.communicate()
if err:
print >> sys.stderr, "Error %s mounting %s." % (err, dmgname)
munkicommon.display_error("Error %s mounting %s." % (err, dmgname))
if pliststr:
plist = FoundationPlist.readPlistFromString(pliststr)
for entity in plist['system-entities']:
+5 -5
View File
@@ -775,8 +775,8 @@ def removeReceipts(pkgkeylist, noupdateapplepkgdb):
["/bin/rm", "-rf", receiptpath])
# remove pkg info from our database
if munkicommon.verbose > 1:
print "Removing package data from internal database..."
munkicommon.display_detail(
"Removing package data from internal database...")
curs.execute('DELETE FROM pkgs_paths where pkg_key = ?', pkgkey_t)
curs.execute('DELETE FROM pkgs where pkg_key = ?', pkgkey_t)
@@ -815,9 +815,9 @@ def removeReceipts(pkgkeylist, noupdateapplepkgdb):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(output, unused_err) = proc.communicate()
if munkicommon.verbose > 1:
if output:
print str(output).decode('UTF-8').rstrip('\n')
if output:
munkicommon.display_detail(
str(output).decode('UTF-8').rstrip('\n'))
local_display_percent_done(2, 4)