Set reponame for local packages.

Reported by:	des
Fix forced upgrade.
Fix packages count in pkg-delete.