You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/07/29 11:31:36 UTC

[incubator-dlab] 01/02: [DLAB-1966]: removed '***' from available versions list

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

lfrolov pushed a commit to branch DLAB-1966
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 587a644f7ebbf747fc09a90ef42ced13430fff77
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Jul 29 13:21:58 2020 +0300

    [DLAB-1966]: removed '***' from available versions list
---
 .../src/general/lib/os/debian/notebook_lib.py                       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 5e1b151..bfd4314 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -387,8 +387,7 @@ def install_os_pkg(requisites):
                 dep = []
             else:
                 dep = dep[len(new_pkgs_parser): dep.find(" upgraded, ") - 1].replace('\r', '') \
-                        .replace('\n', '').replace('  ', ' ').replace(' {} '.format(os_pkg.split("=")[0]),
-                                                                      ' ').strip().split(' ')
+                        .replace('\n', '').replace('  ', ' ').strip().split(' ')
                 for n, i in enumerate(dep):
                     if i == os_pkg.split("=")[0]:
                         dep[n] = ''
@@ -408,7 +407,8 @@ def install_os_pkg(requisites):
                 version = [i for i in ver if os_pkg.split("=")[0] in i][0].split(' ')[1]
                 status_msg = "installed"
             if 'E: Version' in err and 'was not found' in err:
-                versions = sudo ('apt-cache policy {} | grep 500 | grep -v Packages'.format(os_pkg.split("=")[0])).replace('\r\n', '').replace(' 500', '').replace('     ', ' ').strip().split(' ')
+                versions = sudo ('apt-cache policy {} | grep 500 | grep -v Packages'.format(os_pkg.split("=")[0]))\
+                    .replace('\r\n', '').replace(' 500', '').replace('     ', ' ').replace('***', '').strip().split(' ')
                 if versions != '':
                     status_msg = 'invalid_version'
             status.append({"group": "os_pkg", "name": os_pkg.split("=")[0], "version": version, "status": status_msg,


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