mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use os.path.split for more consistancy
This commit is contained in:
parent
6c224591b9
commit
19072f0cd6
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ class SPMClient(object):
|
|||
if pkg.endswith('.spm'):
|
||||
if self._pkgfiles_fun('path_exists', pkg):
|
||||
comps = pkg.split('-')
|
||||
comps = '-'.join(comps[:-2]).split(os.path.sep)
|
||||
comps = os.path.split('-'.join(comps[:-2]))
|
||||
pkg_name = comps[-1]
|
||||
|
||||
formula_tar = tarfile.open(pkg, 'r:bz2')
|
||||
|
|
Loading…
Add table
Reference in a new issue