* [gentoo-commits] portage r15695 - main/branches/2.1.7/pym/portage/dbapi
@ 2010-03-02 21:09 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-03-02 21:09 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2010-03-02 21:09:26 +0000 (Tue, 02 Mar 2010)
New Revision: 15695
Modified:
main/branches/2.1.7/pym/portage/dbapi/porttree.py
Log:
Remove print() usage. (trunk r15494)
Modified: main/branches/2.1.7/pym/portage/dbapi/porttree.py
===================================================================
--- main/branches/2.1.7/pym/portage/dbapi/porttree.py 2010-03-02 21:09:18 UTC (rev 15694)
+++ main/branches/2.1.7/pym/portage/dbapi/porttree.py 2010-03-02 21:09:26 UTC (rev 15695)
@@ -2,8 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-from __future__ import print_function
-
__all__ = [
"close_portdbapi_caches", "FetchlistDict", "portagetree", "portdbapi"
]
@@ -809,8 +807,8 @@
checksums = mf.getDigests()
if not checksums:
if debug:
- print("[empty/missing/bad digest]: "+mypkg)
- return None
+ writemsg("[empty/missing/bad digest]: %s\n" % (mypkg,))
+ return {}
filesdict={}
myfiles = self.getFetchMap(mypkg, useflags=useflags)
#XXX: maybe this should be improved: take partial downloads
@@ -1091,8 +1089,8 @@
else:
myval = list(self._iter_match(mydep, self.cp_list(mykey)))
else:
- print("ERROR: xmatch doesn't handle", level, "query!")
- raise KeyError
+ raise AssertionError(
+ "Invalid level argument: '%s'" % level)
if self.frozen and (level not in ["match-list", "bestmatch-list"]):
self.xcache[level][mydep] = myval
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-02 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 21:09 [gentoo-commits] portage r15695 - main/branches/2.1.7/pym/portage/dbapi Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox