Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
mio
Commits
8f1ec906
Commit
8f1ec906
authored
10 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Version 2015-03-09 12:38
parent
afdaceb3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mio/node.py
+4
-4
4 additions, 4 deletions
src/mio/node.py
with
4 additions
and
4 deletions
src/mio/node.py
+
4
−
4
View file @
8f1ec906
...
@@ -233,7 +233,7 @@ class dir_node(target_node):
...
@@ -233,7 +233,7 @@ class dir_node(target_node):
def
chown
(
self
):
def
chown
(
self
):
# Change owner and group
# Change owner and group
os
.
chown
(
self
.
target
,
self
.
uid
,
self
.
gid
)
os
.
chown
(
self
.
target
,
int
(
self
.
uid
)
,
int
(
self
.
gid
)
)
class
file_node
(
target_node
):
class
file_node
(
target_node
):
...
@@ -376,7 +376,7 @@ class file_node(target_node):
...
@@ -376,7 +376,7 @@ class file_node(target_node):
os
.
close
(
fd
)
os
.
close
(
fd
)
shutil
.
copyfile
(
self
.
source
,
target
)
shutil
.
copyfile
(
self
.
source
,
target
)
# Change owner, mode and date on temporary
# Change owner, mode and date on temporary
os
.
chown
(
target
,
self
.
uid
,
self
.
gid
)
os
.
chown
(
target
,
int
(
self
.
uid
)
,
int
(
self
.
gid
)
)
os
.
chmod
(
target
,
self
.
mode
)
os
.
chmod
(
target
,
self
.
mode
)
if
not
self
.
touch
:
if
not
self
.
touch
:
stat
=
os
.
stat
(
self
.
source
)
stat
=
os
.
stat
(
self
.
source
)
...
@@ -395,7 +395,7 @@ class file_node(target_node):
...
@@ -395,7 +395,7 @@ class file_node(target_node):
def
chown
(
self
,
backup
):
def
chown
(
self
,
backup
):
# Change owner and group
# Change owner and group
os
.
chown
(
self
.
target
,
self
.
uid
,
self
.
gid
)
os
.
chown
(
self
.
target
,
int
(
self
.
uid
)
,
int
(
self
.
gid
)
)
def
mtime
(
self
,
backup
):
def
mtime
(
self
,
backup
):
# Propagate mtime (and atime)
# Propagate mtime (and atime)
...
@@ -496,7 +496,7 @@ class symlink_node(target_node):
...
@@ -496,7 +496,7 @@ class symlink_node(target_node):
def
lchown
(
self
):
def
lchown
(
self
):
# Change owner and group
# Change owner and group
try
:
try
:
os
.
lchown
(
self
.
target
,
self
.
uid
,
self
.
gid
)
os
.
lchown
(
self
.
target
,
int
(
self
.
uid
)
,
int
(
self
.
gid
)
)
except
AttributeError
,
e
:
except
AttributeError
,
e
:
log
(
SILENT
,
declaration
(
self
),
"
Warning: no lchown
"
)
log
(
SILENT
,
declaration
(
self
),
"
Warning: no lchown
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment