aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm3
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};
}