Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
build
Commits
a0021026
Commit
a0021026
authored
9 years ago
by
Tao Bao
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "fix up ota_from_target_files symlink detection."
parents
48a27bcb
2ffb3147
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/releasetools/ota_from_target_files.py
tools/releasetools/ota_from_target_files.py
+3
-3
No files found.
tools/releasetools/ota_from_target_files.py
View file @
a0021026
...
...
@@ -136,12 +136,12 @@ def MostPopularKey(d, default):
def
IsSymlink
(
info
):
"""Return true if the zipfile.ZipInfo object passed in represents a
symlink."""
return
(
info
.
external_attr
>>
16
)
==
0o120
777
return
(
info
.
external_attr
>>
16
)
&
0o770000
==
0o120
000
def
IsRegular
(
info
):
"""Return true if the zipfile.ZipInfo object passed in represents a
symlink
."""
return
(
info
.
external_attr
>>
28
)
==
0o10
regular file
."""
return
(
info
.
external_attr
>>
16
)
&
0o770000
==
0o10
0000
def
ClosestFileMatch
(
src
,
tgtfiles
,
existing
):
"""Returns the closest file match between a source file and list
...
...
This diff is collapsed.
Click to expand it.
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