Do not run local handling fix if local parameter is not found.

Fixes: 7042
Signed-off-by: Warren Usui <warren.usui@inktank.com>
This commit is contained in:
Warren Usui 2013-12-19 14:20:12 -08:00
parent dbcef31ba0
commit 37815b76d3

View File

@ -350,9 +350,10 @@ def _update_deb_package_list_and_install(ctx, remote, debs, config):
stdout=StringIO(),
)
ldir = _get_local_dir(ctx, remote)
for fyle in os.listdir(ldir):
fname = "%s/%s" % (ldir, fyle)
remote.run(args=['sudo', 'dpkg', '-i', fname],)
if ldir:
for fyle in os.listdir(ldir):
fname = "%s/%s" % (ldir, fyle)
remote.run(args=['sudo', 'dpkg', '-i', fname],)
def _yum_fix_repo_priority(remote, project, uri):