Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix interrupted env before uninstalling vpp
[csit.git]
/
resources
/
tools
/
topo_installation.py
diff --git
a/resources/tools/topo_installation.py
b/resources/tools/topo_installation.py
index
b052a85
..
2931926
100755
(executable)
--- a/
resources/tools/topo_installation.py
+++ b/
resources/tools/topo_installation.py
@@
-84,6
+84,10
@@
def main():
cmd = "dpkg -l | grep vpp"
ret, _, _ = ssh.exec_command(cmd)
if ret == 0:
cmd = "dpkg -l | grep vpp"
ret, _, _ = ssh.exec_command(cmd)
if ret == 0:
+ # Try to fix interrupted installations
+ cmd = 'dpkg --configure -a'
+ stdout = ssh_no_error(ssh, cmd, sudo=True)
+ print "###TI {}".format(stdout)
# Try to remove installed vpp.* packages
cmd = 'apt-get purge -y "vpp.*"'
stdout = ssh_no_error(ssh, cmd, sudo=True)
# Try to remove installed vpp.* packages
cmd = 'apt-get purge -y "vpp.*"'
stdout = ssh_no_error(ssh, cmd, sudo=True)
@@
-102,6
+106,10
@@
def main():
cmd = "dpkg -l | grep vpp"
ret, _, _ = ssh.exec_command(cmd)
if ret == 0:
cmd = "dpkg -l | grep vpp"
ret, _, _ = ssh.exec_command(cmd)
if ret == 0:
+ # Try to fix interrupted installations
+ cmd = 'dpkg --configure -a'
+ stdout = ssh_no_error(ssh, cmd, sudo=True)
+ print "###TI {}".format(stdout)
# Try to remove installed vpp.* packages
cmd = 'apt-get purge -y "vpp.*"'
stdout = ssh_no_error(ssh, cmd, sudo=True)
# Try to remove installed vpp.* packages
cmd = 'apt-get purge -y "vpp.*"'
stdout = ssh_no_error(ssh, cmd, sudo=True)