Advertisement
Guest User

gentoolkit-eclean-package-names-protects-all-versions

a guest
Jun 1st, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. --- a/pym/gentoolkit/eclean/search.py 2020-05-02 13:30:12.958615228 +0200
  2. +++ b/pym/gentoolkit/eclean/search.py 2020-05-02 13:33:31.019597359 +0200
  3. @@ -586,16 +586,17 @@
  4. if _deps_equal(binpkg_deps, ebuild_deps, cpv.eapi, uselist):
  5. continue
  6.  
  7. - if destructive and var_dbapi.cpv_exists(cpv):
  8. + if destructive and port_dbapi.cpv_exists(cpv):
  9. # Exclude if an instance of the package is installed due to
  10. # the --package-names option.
  11. if cp in installed and port_dbapi.cpv_exists(cpv):
  12. continue
  13.  
  14. - # Exclude if BUILD_TIME of binpkg is same as vartree
  15. - buildtime = var_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]
  16. - if buildtime == bin_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]:
  17. - continue
  18. + if var_dbapi.cpv_exists(cpv):
  19. + # Exclude if BUILD_TIME of binpkg is same as vartree
  20. + buildtime = var_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]
  21. + if buildtime == bin_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]:
  22. + continue
  23.  
  24. binpkg_path = bin_dbapi.bintree.getname(cpv)
  25. dead_binpkgs.setdefault(cpv, []).append(binpkg_path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement