Lines 1793-1814
Link Here
|
1793 |
if global_unmerge and not pkgmap[x]["selected"]: |
1797 |
if global_unmerge and not pkgmap[x]["selected"]: |
1794 |
#avoid cluttering the preview printout with stuff that isn't getting unmerged |
1798 |
#avoid cluttering the preview printout with stuff that isn't getting unmerged |
1795 |
continue |
1799 |
continue |
1796 |
print "\n "+white(x) |
1800 |
if "--quiet" not in myopts: |
1797 |
for mytype in ["selected","protected","omitted"]: |
1801 |
print "\n "+white(x) |
1798 |
print string.rjust(mytype,12)+":", |
1802 |
for mytype in ["selected","protected","omitted"]: |
1799 |
if pkgmap[x][mytype]: |
1803 |
print string.rjust(mytype,12)+":", |
1800 |
for mypkg in pkgmap[x][mytype]: |
1804 |
if pkgmap[x][mytype]: |
1801 |
mysplit=portage.catpkgsplit(mypkg) |
1805 |
for mypkg in pkgmap[x][mytype]: |
1802 |
if mysplit[3]=="r0": |
1806 |
mysplit=portage.catpkgsplit(mypkg) |
1803 |
myversion=mysplit[2] |
1807 |
if mysplit[3]=="r0": |
1804 |
else: |
1808 |
myversion=mysplit[2] |
1805 |
myversion=mysplit[2]+"-"+mysplit[3] |
1809 |
else: |
1806 |
if mytype=="selected": |
1810 |
myversion=mysplit[2]+"-"+mysplit[3] |
1807 |
print red(myversion), |
1811 |
if mytype=="selected": |
1808 |
else: |
1812 |
print red(myversion), |
1809 |
print green(myversion), |
1813 |
else: |
1810 |
else: |
1814 |
print green(myversion), |
1811 |
print "none", |
1815 |
else: |
|
|
1816 |
print "none", |
1817 |
print |
1818 |
else: |
1819 |
sys.stdout.write("--- "+white(x)+": ") |
1820 |
for mytype,myshorttype in [("selected","Sel."),("protected","Prot."),("omitted","Omit.")]: |
1821 |
if pkgmap[x][mytype]: |
1822 |
if not mytype=="selected": |
1823 |
sys.stdout.write(" ("+myshorttype+":") |
1824 |
for mypkg in pkgmap[x][mytype]: |
1825 |
mysplit=portage.catpkgsplit(mypkg) |
1826 |
if mysplit[3]=="r0": |
1827 |
myversion=mysplit[2] |
1828 |
else: |
1829 |
myversion=mysplit[2]+"-"+mysplit[3] |
1830 |
if mytype=="selected": |
1831 |
sys.stdout.write(" "+red(myversion)) |
1832 |
else: |
1833 |
sys.stdout.write(" "+green(myversion)) |
1834 |
if not mytype=="selected": |
1835 |
sys.stdout.write(")") |
1812 |
print |
1836 |
print |
1813 |
|
1837 |
|
1814 |
print "\n>>>",red("'Selected'"),"packages are slated for removal." |
1838 |
print "\n>>>",red("'Selected'"),"packages are slated for removal." |