|
Lines 2546-2552
Link Here
|
| 2546 |
|
2546 |
|
| 2547 |
|
2547 |
|
| 2548 |
if os.path.exists(myportdir+"/metadata/cache") and updatecache_flg: |
2548 |
if os.path.exists(myportdir+"/metadata/cache") and updatecache_flg: |
| 2549 |
print "\n>>> Updating Portage cache... ", |
2549 |
print "\n>>> Updating Portage cache: ", |
| 2550 |
os.umask(0002) |
2550 |
os.umask(0002) |
| 2551 |
cachedir = os.path.normpath(portage.settings.depcachedir) |
2551 |
cachedir = os.path.normpath(portage.settings.depcachedir) |
| 2552 |
if cachedir in ["/", "/bin", "/dev", "/etc", "/home", |
2552 |
if cachedir in ["/", "/bin", "/dev", "/etc", "/home", |
|
Lines 2590-2596
Link Here
|
| 2590 |
portage.portdb.porttrees=[portage.portdb.porttree_root] |
2590 |
portage.portdb.porttrees=[portage.portdb.porttree_root] |
| 2591 |
mynodes=portage.portdb.cp_all() |
2591 |
mynodes=portage.portdb.cp_all() |
| 2592 |
mynodes.sort() |
2592 |
mynodes.sort() |
|
|
2593 |
nodecount=len(mynodes) |
| 2594 |
currentnode=0 |
| 2593 |
for x in mynodes: |
2595 |
for x in mynodes: |
|
|
2596 |
currentnode=currentnode+1 |
| 2597 |
pernode=str(100*currentnode/nodecount) |
| 2598 |
sys.stdout.write("\b\b\b\b\b"+len(pernode)*"\b"+" "+pernode+"% ") |
| 2599 |
sys.stdout.flush() |
| 2594 |
myxsplit=x.split("/") |
2600 |
myxsplit=x.split("/") |
| 2595 |
mymatches=portage.portdb.xmatch("match-all",x) |
2601 |
mymatches=portage.portdb.xmatch("match-all",x) |
| 2596 |
mymatches.sort() |
2602 |
mymatches.sort() |