]> git.donarmstrong.com Git - debbugs.git/blobdiff - lib/Debbugs/Bug.pm
Prefer the most recent debversion in the dependency list
[debbugs.git] / lib / Debbugs / Bug.pm
index 523ec31ad1a06db7adc4891dfbf7fc1765fc3bce..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();
 }
 
@@ -657,6 +659,7 @@ sub related_packages_and_versions {
            push @return,$pkg;
         }
     }
+    push @return,$self->status->affects;
     return @return;
 }