mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Revert "Fix/workaround for issue #37355"
This commit is contained in:
parent
5e58b32934
commit
e912ac99c2
@ -292,18 +292,6 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods='',
|
||||
if tempdir is not None:
|
||||
shutil.rmtree(tempdir)
|
||||
tempdir = None
|
||||
|
||||
# symlink for backports directory on old distributions
|
||||
tmpbackports = tempfile.mkdtemp(suffix='_backports_workaround', prefix='salt_')
|
||||
tmpbackports_symlink = os.path.join(tmpbackports, 'symlink')
|
||||
os.symlink('salt/ext', tmpbackports_symlink)
|
||||
tfp_deref_old = tfp.dereference
|
||||
tfp.dereference = False
|
||||
tfp.add(tmpbackports_symlink, arcname=os.path.join('py{0}'.format(py_ver), 'backports'))
|
||||
tfp.dereference = tfp_deref_old
|
||||
shutil.rmtree(tmpbackports)
|
||||
# workaround end
|
||||
|
||||
os.chdir(thindir)
|
||||
tfp.add('salt-call')
|
||||
with salt.utils.fopen(thinver, 'w+') as fp_:
|
||||
|
Loading…
Reference in New Issue
Block a user