Error checking added to the main deploy_package_repo method