I think a list comprehension is clearer here:

```python
package_info = [p for p in self.packages if p.package == package_name]
```