This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1748 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit f3546d59eff3f9c62e7cecec5f2c8b72ac7d5aa8 Author: leonidfrolov <frolovl...@gmail.com> AuthorDate: Thu Jul 16 10:55:23 2020 +0300 [DLAB-1748]: added versions for apt dependencies --- .../src/general/lib/os/debian/notebook_lib.py | 5 +++++ 1 file changed, 5 insertions(+) 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 0903c08..7d2b2a7 100644 --- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py +++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py @@ -386,6 +386,11 @@ def install_os_pkg(requisites): .replace('\n', '').replace(' ', ' ').replace(' {} '.format(os_pkg.split("=")[0]), ' ').strip().split(' ') if dep == '' or dep == os_pkg.split("=")[0]: dep = [] + else: + for n, i in enumerate(dep): + pkg = sudo('apt list --installed 2>&1 | grep {}'.format(i)) + if "/" in pkg: + dep[n] = '{} v.{}'.format(pkg.split('/')[0], pkg.split(' ')[1]) else: dep = [] if 'E: Version' in err and 'was not found' in err: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org