Actions
action #3448
closedcreate droplist
Start date:
2014-10-13
Due date:
2014-10-20
% Done:
0%
Estimated time:
Description
the weak provides for the list needs to be generated
[please fill details how to do that]
Actions
Added by coolo over 10 years ago. Updated over 10 years ago.
0%
Description
the weak provides for the list needs to be generated
[please fill details how to do that]
import sys
import solv
pool = solv.Pool()
pool.setarch()
sysrepo = pool.add_repo("@System")
sysrepo.add_rpmdb()
facrepo = pool.add_repo("oss")
facrepo.add_solv(sys.argv[1])
pool.createwhatprovides()
for s in sysrepo.solvables:
haveit = False
for s2 in pool.whatprovides(s.nameid):
if s.repo == s2.repo or s.nameid != s2.nameid:
continue
haveit = True
if haveit:
continue
nevr = pool.rel2id(s.nameid, s.evrid, solv.REL_EQ)
for s2 in pool.whatmatchesdep(solv.SOLVABLE_OBSOLETES, nevr):
if s.repo == s2.repo:
continue
haveit = True
if haveit:
continue
print s.name
is mls' python script to output what is obsolete on his system. This needs to be enhanced to work on testtag versions of all openSUSE distributions and then merge the drop list.
It's best if we create the drop list from scratch all the time to avoid the cleanuporphaneds task
to create a solv file for 13.1 I did
12036 mkdir 13.1
12037 wget http://download.opensuse.org/distribution/13.1/repo/oss/content -O 13.1/content
12038 mkdir -p 13.1/suse/setup/descr
12040 wget http://download.opensuse.org/distribution/13.1/repo/oss/suse/setup/descr/packages.gz -O 13.1/suse/setup/descr/packages.gz
12043 susetags2solv -c 13.1/content -d 13.1/suse/setup/descr/ > 13.1.repo.solv
We need to collect some of them and extend the loop