Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
050f3a75
Commit
050f3a75
authored
Nov 17, 2010
by
anarcat
Committed by
anarcat
Nov 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass --working-copy parameter all the way down to drush make
parent
f781ce9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
install.hostmaster.inc
install.hostmaster.inc
+6
-1
platform/verify.provision.inc
platform/verify.provision.inc
+6
-1
No files found.
install.hostmaster.inc
View file @
050f3a75
...
...
@@ -151,7 +151,12 @@ function drush_provision_hostmaster_install($site = NULL) {
'root'
=>
$platform
,
'makefile'
=>
drush_get_option
(
'makefile'
),
));
provision_backend_invoke
(
$platform_name
,
'provision-verify'
);
// propagate working-copy args downward
$options
=
array
();
if
(
drush_get_option
(
'working-copy'
))
{
$options
[
'working-copy'
]
=
1
;
}
provision_backend_invoke
(
$platform_name
,
'provision-verify'
,
array
(),
$options
);
// exit if an error has occured.
if
(
drush_get_error
())
{
...
...
platform/verify.provision.inc
View file @
050f3a75
...
...
@@ -47,7 +47,12 @@ function drush_provision_drupal_pre_provision_verify() {
// create a platform from a makefile, if it doesnt already exist and the makefile does.
if
(
!
provision_file
()
->
exists
(
d
()
->
root
)
->
status
()
&&
!
empty
(
d
()
->
makefile
))
{
drush_log
(
dt
(
"Platform path does not exists, fetching from drush makefile"
));
drush_backend_invoke
(
"make"
,
array
(
d
()
->
makefile
,
d
()
->
root
),
array
(
'root'
=>
null
,
'uri'
=>
null
));
$options
=
array
(
'root'
=>
null
,
'uri'
=>
null
);
// propagate working-copy args downward
if
(
drush_get_option
(
'working-copy'
))
{
$options
[
'working-copy'
]
=
1
;
}
drush_backend_invoke
(
"make"
,
array
(
d
()
->
makefile
,
d
()
->
root
),
$options
);
if
(
drush_get_error
())
{
return
drush_set_error
(
"DRUSH_MAKE_FAILED"
,
"Could not download platform using drush make. No platform present"
);
...
...
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