summaryrefslogtreecommitdiff
path: root/test-requirements.txt
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2020-03-24 16:35:52 -0400
committerGitHub <noreply@github.com>2020-03-24 16:35:52 -0400
commit53b6d1d6cdd1691b4379df4829109db40097b61b (patch)
tree4d035732fc7cb99323da7aa4e1c16603a059a83f /test-requirements.txt
parent0151e7e89d3376f7fe53e36dc7b36bdcca1c0fc0 (diff)
downloadvyos-cloud-init-53b6d1d6cdd1691b4379df4829109db40097b61b.tar.gz
vyos-cloud-init-53b6d1d6cdd1691b4379df4829109db40097b61b.zip
freebsd: ensure package update works (#273)
Currently, `cc_package_update_upgrade_install.py` fails because `package_command()` does not know how to do an update on FreeBSD. ``` 2020-03-23 20:01:53,995 - util.py[DEBUG]: Package update failed Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/config/cc_package_update_upgrade_install.py", line 85, in handle cloud.distro.update_package_sources() File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/distros/freebsd.py", line 158, in update_package_sources ["update"], freq=PER_INSTANCE) File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/helpers.py", line 185, in run results = functor(*args) File "/usr/local/lib/python3.7/site-packages/cloud_init-20.1-py3.7.egg/cloudinit/distros/bsd.py", line 102, in package_command cmd.extend(pkglist) UnboundLocalError: local variable 'cmd' referenced before assignment ``` This commit defines a new `pkg_cmd_update_prefix` key. If it's empty, we don't do any update, otherwise we use the value to update the package manager.
Diffstat (limited to 'test-requirements.txt')
0 files changed, 0 insertions, 0 deletions