Changes between Version 7 and Version 8 of CompareProviders

Show
Ignore:
Author:
james (IP: 65.172.155.225)
Timestamp:
03/06/13 20:58:35 (5 years ago)
Comment:

Update for equal version and providers version.

Legend:

Unmodified
Added
Removed
Modified
  • CompareProviders

    v7 v8  
    36360. each pkg starts out with a score of 0. 
    3737 
     380. All packages are passed to any compare_providers hooks in plugins. 
     39 
    38401. if any of the providers is a newer version of something we have installed then increase their score by 5 
    3941 
    40 2. if any of the providers are not the newest version of themselves then decrease their score by 1024. 
     421. if any of the providers is the same version of something we have installed then increase their score by 1000 
     43 
     442. if any of the providers is an older version of something we have installed then decrease their score by 1024. 
    4145 
    42463. if any of the providers are obsoleted by another provider, decrease that provider by 1024.  
    50547. check the prefix of the pkg to the requiring pkg prefix (perl-foo and perl-lib) for each common character in the prefix add 2 points to the provider's score. 
    5155 
     568. if, at this point, we have pkgs with an equal score - look at the version of the provide, and if all providers of the top score have a specific version then compare those versions and choose the newest. 
     57 
    52588. if, at this point, we have pkgs with an equal score - look at the deplist (one layer deep) and see what they would pull in that is NOT already installed. Add 1 to the score of the pkg with the least new deps to be pulled in. 
    5359