diff options
author | Dan Fandrich <danf@mageia.org> | 2025-04-02 21:56:38 -0700 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2025-04-02 22:01:39 -0700 |
commit | 6a09d339c82c627f060ed7fa11ca12a7d04bf61a (patch) | |
tree | a6963e00740179bccc2bb9c39ab7f75b4bbd5a18 /lib/MGA/Advisories.pm | |
parent | d7762e525a9ba7bd62af6e2d6906a6ba03fb706b (diff) | |
download | mgaadvisories-6a09d339c82c627f060ed7fa11ca12a7d04bf61a.tar mgaadvisories-6a09d339c82c627f060ed7fa11ca12a7d04bf61a.tar.gz mgaadvisories-6a09d339c82c627f060ed7fa11ca12a7d04bf61a.tar.bz2 mgaadvisories-6a09d339c82c627f060ed7fa11ca12a7d04bf61a.tar.xz mgaadvisories-6a09d339c82c627f060ed7fa11ca12a7d04bf61a.zip |
Show a hint if an SRPM can't be found in non-core
If the RPM name is missing a .nonfree or .tainted suffix, warn the user
that this might be the reason.
Diffstat (limited to 'lib/MGA/Advisories.pm')
-rw-r--r-- | lib/MGA/Advisories.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index 9af425e..c7248b8 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -396,6 +396,9 @@ sub assign_id { print $msg = "✔ "; } else { print $msg = "✘ ($rel/$media/$srpm) "; + if ($media ne "core" && index($srpm, ".$media") < 0) { + print $msg .= "(missing .$media suffix?) "; + } $failed = 1; } $buffer .= $msg; |