mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
SPM: packaging doesn't work in Python 2.6. Fixed.
This commit is contained in:
parent
98fa4a404e
commit
e50a6783ce
1 changed files with 2 additions and 3 deletions
|
@ -622,12 +622,11 @@ class SPMClient(object):
|
|||
|
||||
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(formula_path, formula_conf['name'], filter=self._exclude)
|
||||
formula_tar.add(self.abspath, formula_conf['name'], filter=self._exclude)
|
||||
except TypeError:
|
||||
formula_tar.add(formula_path, formula_conf['name'], exclude=self._exclude)
|
||||
formula_tar.add(self.abspath, formula_conf['name'], exclude=self._exclude)
|
||||
formula_tar.close()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue