Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.buildout
Commits
aa4f5848
Commit
aa4f5848
authored
Jun 06, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace parameter is not present on python2.6
Include backward compatibility to python2.6
parent
48639a6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+7
-2
No files found.
src/zc/buildout/easy_install.py
View file @
aa4f5848
...
...
@@ -705,8 +705,13 @@ class Installer:
# recipes. Make sure that whatever correct version
# we've just installed is the active version,
# hence the ``replace=True``.
try
:
ws
.
add
(
dist
,
replace
=
True
)
except
TypeError
:
# We are running in python 2.6
# remove the key to force the replacement
ws
.
by_key
.
pop
(
dist
.
key
,
None
)
ws
.
add
(
dist
)
finally
:
if
tmp
!=
self
.
_download_cache
:
shutil
.
rmtree
(
tmp
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment