Fix upgrades from older charm versions
Ensure that netaddr and netifaces are installed on upgrade from older py2 based charms to the newer py3 based execution. Change-Id: I1c7b2eb545e5ef5b40ab2db5a1a968ceb7d916e1 Closes-Bug: 1738979
This commit is contained in:
parent
ed84524e3b
commit
023b086b0d
|
@ -2,7 +2,7 @@
|
|||
# Wrapper to deal with newer Ubuntu versions that don't have py2 installed
|
||||
# by default.
|
||||
|
||||
declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml')
|
||||
declare -a DEPS=('apt' 'pip' 'yaml')
|
||||
|
||||
check_and_install() {
|
||||
pkg="${1}-${2}"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Wrapper to ensure that python dependencies are installed before we get into
|
||||
# the python part of the hook execution
|
||||
|
||||
declare -a DEPS=('dnspython' 'pyudev')
|
||||
declare -a DEPS=('dnspython' 'pyudev' 'netaddr' 'netifaces')
|
||||
|
||||
check_and_install() {
|
||||
pkg="${1}-${2}"
|
||||
|
|
Loading…
Reference in New Issue