diff --git a/bin/manila-image-create b/bin/manila-image-create index 5d874ae..382e2e4 100644 --- a/bin/manila-image-create +++ b/bin/manila-image-create @@ -141,6 +141,7 @@ if need_required_packages; then if [ -n "$DIB_UPDATE_REQUESTED" ]; then case "$platform" in "ubuntu") + sudo apt-get update sudo apt-get install $package_list -y ;; "opensuse") diff --git a/tox.ini b/tox.ini index 2bc78cc..70e2edb 100644 --- a/tox.ini +++ b/tox.ini @@ -29,6 +29,8 @@ commands = {posargs} [testenv:buildimage] commands = manila-image-create +deps = + -r{toxinidir}/requirements.txt [flake8] show-source = true