mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28224 from techhat/spmoptimize
Optimize create_repo for large packages
This commit is contained in:
commit
1c55513ce3
1 changed files with 4 additions and 0 deletions
|
@ -615,6 +615,10 @@ class SPMClient(object):
|
|||
self.formula_conf = formula_conf
|
||||
|
||||
formula_tar = tarfile.open(out_path, 'w:bz2')
|
||||
|
||||
# Add FORMULA first, to speed up create_repo on large packages
|
||||
formula_tar.add(formula_path, formula_conf['name'], filter=self._exclude)
|
||||
|
||||
try:
|
||||
formula_tar.add(self.abspath, formula_conf['name'], filter=self._exclude)
|
||||
except TypeError:
|
||||
|
|
Loading…
Add table
Reference in a new issue