]> git.donarmstrong.com Git - debbugs.git/blobdiff - bin/debbugs-loadsql
fix wrong calling of from_epoch
[debbugs.git] / bin / debbugs-loadsql
index 870f712ae01509e19aeab72fd627bae84afa66ed..1dd7a6aaa81e40dd5b9a5aef375228e320ab6e9f 100755 (executable)
@@ -324,7 +324,7 @@ sub add_debinfo {
             }
             my $sp = $s->resultset('SrcPkg')->find_or_create({pkg => $srcname});
             # update the creation date if the data we have is earlier
-            my $ct_date = DateTime->from_epoch($f_stat->ctime);
+            my $ct_date = DateTime->from_epoch(epoch => $f_stat->ctime);
             if ($ct_date < $sp->creation) {
                 $sp->creation($ct_date);
                 $sp->last_modified(DateTime->now);
@@ -416,7 +416,7 @@ sub add_configuration {
         # add all severitites
         my $sev = $s->resultset('Severity')->find_or_create({severity => $sev_name});
         # mark strong severities
-        if (grep $sev_name $config{strong_severities}) {
+        if (grep {$_ eq $sev_name} @{$config{strong_severities}}) {
             $sev->strong(1);
         }
         $sev->order($order);