mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
scripts/binpkgs-missing: a little code to help use keep binpkgs up to date better
This commit is contained in:
parent
5144fe2797
commit
5a7b509998
1 changed files with 22 additions and 0 deletions
22
scripts/binpkgs-missing
Executable file
22
scripts/binpkgs-missing
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/python
|
||||
# fetched from https://dev.gentoo.org/~zmedico/tmp/binpkgs-missing
|
||||
# written by zmedico
|
||||
|
||||
import sys
|
||||
import portage
|
||||
|
||||
root = portage.settings["ROOT"]
|
||||
vardb = portage.db[root]["vartree"].dbapi
|
||||
bindb = portage.db[root]["bintree"].dbapi
|
||||
|
||||
existing = []
|
||||
for cpv in bindb.cpv_all():
|
||||
try:
|
||||
installed_build_time, = vardb.aux_get(str(cpv), ['BUILD_TIME'])
|
||||
except KeyError:
|
||||
continue
|
||||
if installed_build_time.strip() == str(cpv.build_time):
|
||||
existing.append(str(cpv))
|
||||
|
||||
for cpv in sorted(set(vardb.cpv_all()).difference(existing)):
|
||||
sys.stdout.write("=%s\n" % cpv)
|
||||
Loading…
Reference in a new issue