]> git.donarmstrong.com Git - debbugs.git/commitdiff
if the upload date is not defined, update it
authorDon Armstrong <don@donarmstrong.com>
Wed, 9 Mar 2016 04:18:41 +0000 (20:18 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 10 Aug 2016 20:45:41 +0000 (13:45 -0700)
bin/debbugs-loadsql

index 1dd7a6aaa81e40dd5b9a5aef375228e320ab6e9f..b1140794d08177390d60882b2527b2a1ec7a3e8f 100755 (executable)
@@ -332,7 +332,7 @@ sub add_debinfo {
             }
             my $sv = $s->resultset('SrcVer')->find_or_create({src_pkg =>$sp->id(),
                                                               ver => $srcver});
-            if ($ct_date < $sv->upload_date()) {
+            if (not defined $sv->upload_date() or $ct_date < $sv->upload_date()) {
                 $sv->upload_date($ct_date);
                 $sv->update;
             }