Set reponame for local packages.

Reported by:	des
Fix forced upgrade.
Fix packages count in pkg-delete.
Allow override `enabled` state for repos.