]> git.donarmstrong.com Git - debbugs.git/commitdiff
only complain about there not being a db when there should be one
authorDon Armstrong <don@donarmstrong.com>
Sun, 7 Mar 2021 16:26:55 +0000 (08:26 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 7 Mar 2021 16:26:55 +0000 (08:26 -0800)
lib/Debbugs/Bug.pm

index fefb49330959da92c19ce0093d49b4da91bf347c..b3e95cd1b266426323b638a190dce42e51d0b62e 100644 (file)
@@ -119,7 +119,9 @@ sub _build_package_collection {
     if ($self->has_schema) {
         return Debbugs::Collection::Package->new(schema => $self->schema);
     }
-    carp "No schema when building package collection";
+    if (defined $config{database}) {
+        carp "No schema when building package collection";
+    }
     return Debbugs::Collection::Package->new();
 }