if not hasattr(__builtins__, "set"):
from sets import Set as set
+from itertools import izip
class stdout_spinner(object):
scroll_msgs = [
"DEPEND", "RDEPEND", "PDEPEND"]
real_dbapi = real_vartree.dbapi
for cpv in real_dbapi.cpv_all():
- metadata = dict(zip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
+ metadata = dict(izip(mykeys, real_dbapi.aux_get(cpv, mykeys)))
self.dbapi.cpv_inject(cpv, metadata=metadata)
finally:
if vdb_lock:
upd_commands = self.global_updates[myroot]
aux_keys = ["DEPEND", "RDEPEND", "PDEPEND"]
aux_vals = vardb.aux_get(myeb_inst, aux_keys)
- aux_dict = dict(zip(aux_keys, aux_vals))
+ aux_dict = dict(izip(aux_keys, aux_vals))
updates = update_dbentries(upd_commands, aux_dict)
if updates:
vardb.aux_update(myeb_inst, updates)
aux_vals = portdb.aux_get(cpv, fakedb_auxkeys)
except KeyError:
aux_vals = vardb.aux_get(cpv, fakedb_auxkeys)
- fake_vardb.cpv_inject(cpv, metadata=dict(zip(fakedb_auxkeys, aux_vals)))
+ fake_vardb.cpv_inject(
+ cpv, metadata=dict(izip(fakedb_auxkeys, aux_vals)))
# HACK: Ensure that installed packages are preferenced by dep_check().
trees[settings["ROOT"]]["porttree"].dbapi = fake_vardb
continue
spinner.update()
fakedb.cpv_inject(pkg)
- myaux = dict(zip(aux_keys, fake_vardb.aux_get(pkg, aux_keys)))
+ myaux = dict(izip(aux_keys, fake_vardb.aux_get(pkg, aux_keys)))
mydeps = []
if myopts.get("--with-bdeps", "y") == "y":
mydeps.append((myaux["DEPEND"], soft))