os_package_resource: introduced query downloaded version via apt-cache, fix download-only and upgrade logic; python_package_resource: fix download-only and upgrade logic, hack for pyres and ibm-db; db2_driver_resource supports download-only