churchyard / FedoraReview

Forked from FedoraReview 7 years ago
Clone

e31017e Don't report deprecated() dependencies if other packages satisfy them

Authored and Committed by churchyard 9 months ago
    Don't report deprecated() dependencies if other packages satisfy them
    
    Instead of putting all packages that satisfy all dependencies to one pile,
    we group them by the dependency itself.
    And we only report if all packages in one group are deprecated().
    
    As a specific example consider python3-pytest4 is deprecated(),
    and a package BuildRequires:
    
     - python3-devel
     - python3dist(pytest)
    
    Previously, we would get:
    
      {python3-devel, python3-pytest, python3-pytest4}
    
    And one of the is deprecated() => false report
    
    Now we get:
    
      {python3-devel: [python3-devel], python3dist(pytest): [python3-pytest, python3-pytest4]}
    
    And none of the groups is all-deprecated => no false report
    
    Fixes https://pagure.io/FedoraReview/issue/392
    
        
file modified
+9 -16
file modified
+7 -1