mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Added cache to improve speed
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
405237cbd5
commit
8831c8cf7e
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
3.9.7 - 02/04/2022
|
||||
Fixed:
|
||||
- Stderr error output
|
||||
Updated:
|
||||
- Improve dependencies resolve speed
|
||||
|
||||
3.9.6 - 02/04/2022
|
||||
Updated:
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
|
||||
import sys
|
||||
from functools import lru_cache
|
||||
|
||||
from slpkg.__metadata__ import MetaData as _meta_
|
||||
|
||||
|
@ -49,11 +50,12 @@ class Dependencies:
|
|||
for req in requires:
|
||||
if req and req not in self.black:
|
||||
dependencies.append(req)
|
||||
self.deep_check(dependencies, flag)
|
||||
self.deep_check(tuple(dependencies), tuple(flag))
|
||||
return self.dep_results
|
||||
else:
|
||||
return []
|
||||
|
||||
@lru_cache
|
||||
def deep_check(self, dependencies, flag):
|
||||
"""Checking if dependencies are finnished
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue