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:49 UTC

[incubator-datalab] branch DATALAB-2091 updated (70d2b0c -> 754f120)

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

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


    from 70d2b0c  [DATALAB-2091]: changed how dpkg error is used
     new ba2ea8f  [DATALAB-2091]: changed how dpkg error is used
     new 754f120  [DATALAB-2091]: changed how dpkg error is used

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/general/lib/os/debian/common_lib.py                    | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)


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


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

Posted by lf...@apache.org.
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


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

Posted by lf...@apache.org.
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 ba2ea8f5dbb6f39792f4bb7fc809c25ae770ca85
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Feb 18 10:03:39 2021 +0200

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

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 ac681e5..fae15fc 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -49,9 +49,14 @@ def manage_pkg(command, environment, requisites):
                         try:
                             error_parser = "locked"
                             print('=========0')
-                            command_output = datalab.fab.conn.sudo('dpkg --configure -a')# 2>&1 | tee /tmp/tee.tmp; if ! grep -w -E "({0}})" /tmp/tee.tmp > '
+                            try:
+                                command_output = datalab.fab.conn.sudo('dpkg --configure -a')
+                                print('----------- install 2 command_output ' + command_output)
+                            except:
+                                print('======exception')
+                                traceback.print_exc()
+                            #datalab.fab.conn.sudo('dpkg --configure -a 2>&1 | tee /tmp/tee.tmp; if ! grep -w -E "({0}})" /tmp/tee.tmp > '
                                                   #'/tmp/dpkg.log; then echo "no_error" > /tmp/dpkg.log;fi'.format(error_parser))
-                            print('=========1 '+command_output)
                             #print(datalab.fab.conn.sudo('cat /tmp/dpkg.log'))
                             #print('=========2')
                             #print(str(datalab.fab.conn.sudo('cat /tmp/dpkg.log')))


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