openSUSE / openSUSE-release-tools

Tools to aid in staging and release work for openSUSE/SUSE
GNU General Public License v2.0
57 stars 91 forks source link

pkglistgen: Don't always regenerate .changes #3066

Closed Vogtinator closed 4 months ago

Vogtinator commented 4 months ago

Change file_utils.unlink_all_except to accept globs and use it to keep .changes.

Vogtinator commented 4 months ago

This is technically not fully correct as it should also remove .changes files which no longer match any .spec but that's only known later. So this PR is just "good enough".

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 28.23%. Comparing base (a2edca4) to head (fc97bf7).

Files Patch % Lines
pkglistgen/file_utils.py 0.00% 4 Missing :warning:
pkglistgen/tool.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3066 +/- ## ========================================== - Coverage 28.24% 28.23% -0.01% ========================================== Files 86 86 Lines 14840 14843 +3 ========================================== Hits 4191 4191 - Misses 10649 10652 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.