Skip to content

Commit

Permalink
Log when downloading packages via HTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanolla committed Aug 19, 2014
1 parent af0d30e commit d5b3c70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/Bcfg2/Client/Tools/SYSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def pkgmogrify(self, packages):
if pkg.get('simplename'):
tmpfile = tempfile.NamedTemporaryFile()
self.tmpfiles.append(tmpfile)
self.logger.info("Downloading %s%s to %s" % (pkg.get('url'),
pkg.get('simplename'), tmpfile.name))
urlretrieve("%s/%s" % (pkg.get('url'), pkg.get('simplename')),
tmpfile.name)
pkg.set('_sysv_pkg_path', tmpfile.name)
Expand Down

0 comments on commit d5b3c70

Please sign in to comment.