Merge pull request #45529 from Ch3LL/pacman-sources

Fix UnboundLocalError for pacman pkg installs
This commit is contained in:
Nicole Thomas 2018-01-18 14:01:48 -05:00 committed by GitHub
commit 5e26282843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: