packager: refactored 'add_local_pkg_repo' function
packager: refactored 'add_local_pkg_repo' function

Former-commit-id: 2254a6bbe455d15ee19e6b397dc5027e363979ac
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine