Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
provision
Commits
73120e53
Commit
73120e53
authored
Jul 01, 2009
by
Adrian Rossouw
Committed by
adrian
Jul 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an error with provision verify i introduced alongside the chmod_recursive path function
parent
3ebd37aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
platform/provision_drupal.drush.inc
platform/provision_drupal.drush.inc
+1
-1
provision.path.inc
provision.path.inc
+1
-4
No files found.
platform/provision_drupal.drush.inc
View file @
73120e53
...
...
@@ -342,7 +342,7 @@ function _provision_drupal_get_cvs_versions($files) {
$project
[
'project'
]
=
cvs_deploy_get_project_name
(
$project
);
}
_cvs_deploy_version_alter
(
$file
->
info
[
'version'
],
$project
);
$name
=
(
$project
[
'project'
])
?
$project
[
'project'
]
:
$modulename
;
$name
=
!
empty
(
$project
[
'project'
])
?
$project
[
'project'
]
:
$modulename
;
$files
[
$name
]
=
$file
;
}
...
...
provision.path.inc
View file @
73120e53
...
...
@@ -79,9 +79,6 @@ function provision_path($op, $path, $confirm = TRUE, $succeed_message = NULL, $f
$value
=
$func
(
$path
,
$confirm
,
$reason
);
if
(
$op
==
'chmod'
)
{
$confirm
=
sprintf
(
'%o'
,
$confirm
);
# convert octal to string representation
}
clearstatcache
();
// this needs to be called, otherwise we get the old info
$tokens
=
array
(
"@path"
=>
$path
,
"@op"
=>
$op
,
"@confirm"
=>
$confirm
);
if
(
$reason
)
{
...
...
@@ -170,7 +167,7 @@ function provision_path_chmod($path, &$perms, &$reason, $recursive = FALSE) {
}
clearstatcache
();
// this needs to be called, otherwise we get the old info
$value
=
substr
(
sprintf
(
'%o'
,
fileperms
(
$path
)),
-
4
);
$perms
=
sprintf
(
'%o'
,
$perms
);
$perms
=
sprintf
(
'%
04
o'
,
$perms
);
return
$value
;
}
...
...
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