mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Added cache to improve speed
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
8831c8cf7e
commit
62f5e31671
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
from functools import lru_cache
|
||||||
from slpkg.utils import Utils
|
from slpkg.utils import Utils
|
||||||
from slpkg.splitting import split_package
|
from slpkg.splitting import split_package
|
||||||
from slpkg.__metadata__ import MetaData as _meta_
|
from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
@ -202,9 +203,10 @@ class Requires:
|
||||||
if line[18:].strip():
|
if line[18:].strip():
|
||||||
return self._req_fix(line)
|
return self._req_fix(line)
|
||||||
|
|
||||||
|
@lru_cache
|
||||||
def _req_fix(self, line):
|
def _req_fix(self, line):
|
||||||
"""Fix slacky and salix requirements because many dependencies splitting
|
"""Fix slacky and salix requirements because many dependencies
|
||||||
with "," and others with "|"
|
splitting with "," and others with "|"
|
||||||
"""
|
"""
|
||||||
deps = []
|
deps = []
|
||||||
for dep in line[18:].strip().split(","):
|
for dep in line[18:].strip().split(","):
|
||||||
|
|
Loading…
Reference in a new issue