Fix UnboundLocalError for pacman pkg installs

This commit is contained in:
Ch3LL 2018-01-18 11:12:10 -05:00
parent e1403b6813
commit e619d49ef3
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

View file

@ -538,6 +538,7 @@ def install(name=None,
cmd.extend(['systemd-run', '--scope'])
cmd.append('pacman')
targets = []
errors = []
if pkg_type == 'file':
cmd.extend(['-U', '--noprogressbar', '--noconfirm'])
@ -549,7 +550,6 @@ def install(name=None,
if sysupgrade:
cmd.append('-u')
cmd.extend(['--noprogressbar', '--noconfirm', '--needed'])
targets = []
wildcards = []
for param, version_num in six.iteritems(pkg_params):
if version_num is None: