]> git.donarmstrong.com Git - debbugs.git/commitdiff
Package member key is the fully-qualified name; fix error in get
authorDon Armstrong <don@donarmstrong.com>
Fri, 8 Jun 2018 20:34:27 +0000 (13:34 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 8 Jun 2018 20:34:27 +0000 (13:34 -0700)
Debbugs/Collection.pm
Debbugs/Collection/Package.pm

index cbfd56b31eb8dbb283fdcefbabe1f5372c8e8e1a..808d77f278c1c648808bf342022763f51cacebd1 100644 (file)
@@ -197,7 +197,8 @@ sub add {
 
 sub get {
     my $self = shift;
-    return $self->_get_member($self->_get_member_hash(@_));
+    return map {$self->_get_member($_)}
+        $self->_get_member_hash(@_);
 }
 
 
index a78d7b75908aec7a29552b790b1bbe442243004f..1675c498e1a3df9ef62a23d5ebf9187d2abbefba 100644 (file)
@@ -182,7 +182,7 @@ sub add_packages_and_versions {
 # }
 
 sub member_key {
-    return $_[1]->name;
+    return $_[1]->qualified_name;
 }
 
 has 'correspondent_collection' =>