aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rumba/ssh_support.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py
index 1ffa655..69c049c 100644
--- a/rumba/ssh_support.py
+++ b/rumba/ssh_support.py
@@ -406,13 +406,9 @@ def aptitude_install(testbed, node, packages):
package_install += package + " "
package_install += "--yes"
- cmds = [sudo("systemctl disable apt-daily.service || true"),
- sudo("systemctl disable apt-daily.timer || true"),
- sudo("systemctl stop apt-daily.service || true"),
- sudo("systemctl stop apt-daily.timer || true"),
- sudo("sh -c 'while fuser /var/lib/dpkg/lock > /dev/null 2>&1; " +
+ cmds = [sudo("sh -c 'while fuser /var/lib/dpkg/lock > /dev/null 2>&1; " +
"do sleep 1; echo \"Waiting for dpkg...\"; done'"),
- sudo("apt-get update"),
- sudo(package_install)]
+ "while ! " + sudo("apt-get update") + "; do sleep 1; done",
+ "while ! " + sudo(package_install) + "; do sleep 1; done"]
execute_proxy_commands(testbed, node.ssh_config, cmds, time_out=None)