Advertisement
Guest User

package-names-now-really-protects-all-versions.patch

a guest
Jun 1st, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.49 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. +                       if cp in installed:
  13.                                 continue
  14.  
  15. -                       # Exclude if BUILD_TIME of binpkg is same as vartree
  16. -                       buildtime = var_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]
  17. -                       if buildtime == bin_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]:
  18. -                               continue
  19. +                       if var_dbapi.cpv_exists(cpv):
  20. +                               # Exclude if BUILD_TIME of binpkg is same as vartree
  21. +                               buildtime = var_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]
  22. +                               if buildtime == bin_dbapi.aux_get(cpv, ['BUILD_TIME'])[0]:
  23. +                                       continue
  24.  
  25.                 binpkg_path = bin_dbapi.bintree.getname(cpv)
  26.                 dead_binpkgs.setdefault(cpv, []).append(binpkg_path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement