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/09/03 12:36:43 UTC

[incubator-dlab] 01/01: [DLAB-2021]: changed available yum package versions acquirement

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

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

commit 346308e52db58d99ef946968c9bb5e6eb5f763f0
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Sep 3 15:36:11 2020 +0300

    [DLAB-2021]: changed available yum package versions acquirement
---
 infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
index b5b64d4..1cee42e 100644
--- a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
@@ -385,7 +385,7 @@ def install_os_pkg(requisites):
                 version = res.split("'")[1].split("-")[0]
                 status_msg = "installed"
             if 'No package {} available'.format(os_pkg) in install_output:
-                versions = sudo ('yum --showduplicates list ' + name + ' | expand | grep -A 10 "Available Packages" | grep -v "Available Packages"| awk \'{print $2}\'').replace('\r\n', '')
+                versions = sudo('yum --showduplicates list ' + name + ' | expand | grep ' + name + ' | awk \'{print $2}\'').replace('\r\n', '')
                 if versions and versions != 'Error: No matching Packages to list':
                     versions = versions.split(' ')
                     status_msg = 'invalid_version'


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