Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.cmmi
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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.cmmi
Commits
9b90e12a
Commit
9b90e12a
authored
Jul 31, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support arch in section name as [part:platform:arch]
parent
fc7b1f79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
slapos/recipe/cmmi/README.txt
slapos/recipe/cmmi/README.txt
+5
-1
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+3
-1
No files found.
slapos/recipe/cmmi/README.txt
View file @
9b90e12a
...
...
@@ -232,7 +232,11 @@ Supported options
the former will be overridden by the latter allowing per-part customization.
The recipe uses separated part to support custom options in different
platforms. These platform's part has a pattern "part:platform".
platforms. These platform's part has a pattern "part:platform" or
"part:platform:arch".
arch could be 'x86', 'amd64', 'ia64' ... which equals
platform.machine().
platform could be 'linux', 'cygwin', 'macos', 'sunos', 'freebsd',
'netbsd', 'unixware' ... which equals a formatted sys.platform.
...
...
slapos/recipe/cmmi/__init__.py
View file @
9b90e12a
...
...
@@ -23,7 +23,9 @@ class Recipe(object):
self
.
name
=
name
# Merge options if there is a matched platform section
platform_options
=
self
.
buildout
.
get
(
"%s:%s"
%
(
name
,
sys
.
platform
))
platform_options
=
self
.
buildout
.
get
(
"%s:%s:%s"
%
(
name
,
sys
.
platform
,
self
.
get_machine
()),
self
.
buildout
.
get
(
"%s:%s"
%
(
name
,
sys
.
platform
)))
if
platform_options
is
None
:
self
.
original_options
=
options
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