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

Former-commit-id: ac5eca8847b2e7be9198fd4c631e58ae344f1580 [formerly ac5eca8847b2e7be9198fd4c631e58ae344f1580 [formerly 2254a6bbe455d15ee19e6b397dc5027e363979ac]]
Former-commit-id: 7f6cc0c9a0cfde872c51c0ff17ba967be1832065
Former-commit-id: ec836a27b0225f9bead002daccb6cf31df1e676d
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine