You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/18 08:11:51 UTC

[incubator-datalab] 02/02: [DATALAB-2091]: changed how dpkg error is used

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 754f1208938b2528d66abba0883911f30258c820
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Feb 18 10:11:34 2021 +0200

    [DATALAB-2091]: changed how dpkg error is used
---
 infrastructure-provisioning/src/general/lib/os/debian/common_lib.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
index fae15fc..0e6a589 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -49,8 +49,9 @@ def manage_pkg(command, environment, requisites):
                         try:
                             error_parser = "locked"
                             print('=========0')
+                            datalab.fab.conn.sudo('dpkg --configure -a')
                             try:
-                                command_output = datalab.fab.conn.sudo('dpkg --configure -a')
+                                command_output = datalab.fab.conn.sudo('dpkg --configure -a', capture=True)
                                 print('----------- install 2 command_output ' + command_output)
                             except:
                                 print('======exception')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org