Boolean logic used in install_package was wrong:
on nominal flow packages were actually installed twice.
This should fix it.
Change-Id: Ia465414936b272d04523a11f83d6ded378fe1daf
Closes-Bug: #1518544
... | ... |
@@ -1245,7 +1245,9 @@ function real_install_package { |
1245 | 1245 |
# install_package package [package ...] |
1246 | 1246 |
function install_package { |
1247 | 1247 |
update_package_repo |
1248 |
- real_install_package $@ || RETRY_UPDATE=True update_package_repo && real_install_package $@ |
|
1248 |
+ if ! real_install_package "$@"; then |
|
1249 |
+ RETRY_UPDATE=True update_package_repo && real_install_package "$@" |
|
1250 |
+ fi |
|
1249 | 1251 |
} |
1250 | 1252 |
|
1251 | 1253 |
# Distro-agnostic function to tell if a package is installed |