Merge pull request #34833 from rallytime/bp-28521

Back-port #28521 to 2015.8
This commit is contained in:
Mike Place 2016-07-21 08:37:24 -06:00 committed by GitHub
commit b375720251

View file

@ -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()