package-auto-deps: avoid duplicate packages iteration

Signed-off-by: Christopher Larson <kergoth@gmail.com>