Ticket #142: pmerge.py.patch
| File pmerge.py.patch, 2.0 kB (added by mcklaren, 10 months ago) |
|---|
-
pmerge.py
old new 231 231 raise Failure('vdb is frozen') 232 232 233 233 for idx, match in enumerate(matches): 234 out.write( "removing %i of %i: %s" % (idx + 1, len(matches), match))234 out.write(out.bold, out.fg('yellow'), ">> removing %i of %i: %s" % (idx + 1, len(matches), match)) 235 235 out.title("%i/%i: %s" % (idx + 1, len(matches), match)) 236 236 op = vdb.uninstall(match, observer=repo_obs) 237 237 ret = op.finish() … … 240 240 raise Failure('failed unmerging %s' % (match,)) 241 241 out.write(out.fg('red'), 'failed unmerging ', match) 242 242 update_worldset(world_set, match, remove=True) 243 out.write( "finished; removed %i packages" % len(matches))243 out.write(out.bold, out.fg('yellow'), ' * ', out.reset, "Finished; removed %i packages" % len(matches)) 244 244 245 245 246 246 def get_pkgset(config, err, setname): … … 429 429 430 430 failures = [] 431 431 resolve_time = time() 432 out.write(out.bold, ' * ', out.reset, 'Resolving...')432 out.write(out.bold, out.fg('yellow'), ' * ', out.reset, out.bold, 'Resolving...') 433 433 out.title('Resolving...') 434 434 for restrict in atoms: 435 435 ret = resolver_inst.add_atom(restrict) … … 509 509 510 510 change_count = len(changes) 511 511 for count, op in enumerate(changes): 512 out.write( "Processing %i of %i: %s" % (count + 1, change_count,512 out.write(out.bold, out.fg('blue'), ">> Processing %i of %i: %s" % (count + 1, change_count, 513 513 op.pkg.cpvstr)) 514 514 out.title("%i/%i: %s" % (count + 1, change_count, op.pkg.cpvstr)) 515 515 if op.desc != "remove": … … 583 583 out.write('>>> Adding %s to world file' % op.pkg.cpvstr) 584 584 add_pkg = slotatom_if_slotted(all_repos, op.pkg.versioned_atom) 585 585 update_worldset(world_set, add_pkg) 586 out.write( "finished")586 out.write(out.bold, out.fg('blue'), ' * ', out.reset, "Finished") 587 587 return 0
