Fix a regression in the packages module introduced by recent r251190.
I somehow neglected this module in merging that API change.
Fix a typo introduced by r251190.