I think this used to be a wget call, so the url we were requesting to
fetch the package version would be logged by that wget call. Since
we've changed that call to use requests and lost that logging, this adds
some of that logging back.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
:returns: str -- the version e.g. '0.67-240-g67a95b9-1raring'
:raises: VersionNotFoundError
"""
+ url = "{0}/version".format(base_url)
+ log.info("Looking for package version: {0}".format(url))
while True:
- resp = requests.get(base_url + '/version')
+ resp = requests.get(url)
if not resp.ok:
if wait:
log.info(
version = version[1:]
if '-' in version:
version = version.split('-')[0]
+ log.info("Found version: {0}".format(version))
return version
def _get_local_dir(config, remote):