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
Nicolas Wavrant
slapos.buildout
Commits
e837aff8
Commit
e837aff8
authored
Feb 02, 2017
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
7e773f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+7
-1
No files found.
src/zc/buildout/buildout.py
View file @
e837aff8
...
...
@@ -652,6 +652,7 @@ class Buildout(DictMixin):
options
=
self
[
'buildout'
]
link
=
options
.
get
(
'link'
,
""
)
if
link
and
shared_path
:
os
.
environ
.
set
(
'BUILDOUT_HOME'
,
shared_path
)
self
.
_save_installed_options
()
return
...
...
@@ -666,6 +667,7 @@ class Buildout(DictMixin):
if
self
.
show_picked_versions
or
self
.
update_versions_file
:
self
.
_print_picked_versions
()
self
.
_unload_extensions
()
os
.
environ
.
set
(
'BUILDOUT_HOME'
,
os
.
curdir
)
def
_install_parts
(
self
,
install_args
):
__doing__
=
'Installing.'
...
...
@@ -956,6 +958,10 @@ class Buildout(DictMixin):
def
_read_installed_part_options
(
self
):
old
=
self
[
'buildout'
][
'installed'
]
link
=
options
.
get
(
'link'
,
""
)
new_path
=
os
.
curdir
shared_path
=
shared_stack_path
(
link
)
if
old
and
os
.
path
.
isfile
(
old
):
fp
=
open
(
old
)
sections
=
zc
.
buildout
.
configparser
.
parse
(
fp
,
old
)
...
...
@@ -967,7 +973,7 @@ class Buildout(DictMixin):
for
k
,
v
in
_spacey_defaults
:
value
=
value
.
replace
(
k
,
v
)
options
[
option
]
=
value
result
[
section
]
=
self
.
Options
(
self
,
section
,
options
)
result
[
section
]
=
self
.
Options
(
self
,
section
,
options
.
replace
(
shared_path
,
new_path
)
)
return
result
else
:
...
...
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