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
61236e8f
Commit
61236e8f
authored
Apr 17, 2009
by
Adrian Rossouw
Committed by
adrian
Apr 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize package arrays, save client email, load the right engine for packages
parent
11a43ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
platform/provision_drupal.drush.inc
platform/provision_drupal.drush.inc
+4
-1
No files found.
platform/provision_drupal.drush.inc
View file @
61236e8f
...
...
@@ -81,6 +81,7 @@ function provision_drupal_drush_exit($url = NULL) {
if
(
drush_get_option
(
'installed'
))
{
drush_set_option
(
'site_url'
,
drush_get_option
(
'site_url'
),
'site'
);
drush_set_option
(
'site_id'
,
drush_get_option
(
'site_id'
),
'site'
);
drush_set_option
(
'client_email'
,
drush_get_option
(
'client_email'
),
'site'
);
provision_save_site_data
(
$url
);
}
}
...
...
@@ -388,7 +389,7 @@ require_once('cvs_deploy.inc');
function
provision_find_packages
()
{
// Load the version specific include files.
drush_include_engine
(
'drupal'
,
'packages'
);
drush_include_engine
(
'drupal'
,
'packages'
,
drush_drupal_major_version
()
);
$packages
[
'base'
]
=
_provision_find_packages
(
'base'
);
...
...
@@ -427,8 +428,10 @@ function _provision_find_platforms() {
* A small helper function to reduce code duplication
*/
function
_provision_find_packages
(
$scope
,
$key
=
''
)
{
$packages
=
array
();
$scope_text
=
(
$key
)
?
"
$scope
/
$key
"
:
$scope
;
foreach
(
array
(
'modules'
,
'themes'
)
as
$type
)
{
$packages
[
$type
]
=
array
();
$func
=
"_provision_drupal_find_
$type
"
;
$result
=
$func
(
$scope
,
$key
);
if
(
sizeof
(
$result
))
{
...
...
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