diff options
author | Dan Fandrich <danf@mageia.org> | 2025-02-24 13:48:36 -0800 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2025-02-24 13:49:53 -0800 |
commit | 56d1db2a23d49a58c62c16065d3436b75fe763b3 (patch) | |
tree | 09f0388c0e5493dc22662167a257723fba01b6ab /lib | |
parent | a7369e264e3b61331f7d1c6cd1ad4c29c3554a07 (diff) | |
download | mgaadvisories-56d1db2a23d49a58c62c16065d3436b75fe763b3.tar mgaadvisories-56d1db2a23d49a58c62c16065d3436b75fe763b3.tar.gz mgaadvisories-56d1db2a23d49a58c62c16065d3436b75fe763b3.tar.bz2 mgaadvisories-56d1db2a23d49a58c62c16065d3436b75fe763b3.tar.xz mgaadvisories-56d1db2a23d49a58c62c16065d3436b75fe763b3.zip |
Don't always reset a "modified" value in the status file
The modified value starts off from SVN, but if a more recent value is
found in the status file, use that instead.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MGA/Advisories.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index ea32f90..9af425e 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -219,7 +219,8 @@ sub get_advisories_from_dir { # TODO: this changes the ref set previously to include the extension # this time. Is that deliberate? my $fn = $adv->{ref} = basename($advfile); - if (exists $modified->{$fn}) { + if (exists $modified->{$fn} && + (! exists $adv->{status}{modified} || $modified->{$fn} > $adv->{status}{modified})) { # Pull the modified date into the advisory $adv->{status}{modified} = $modified->{$fn}; } |