Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos.recipe.build
Commits
d85db4b9
Commit
d85db4b9
authored
Mar 08, 2017
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
downloadunpacked: fix an issue in extracting hard links.
parent
270e1364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
slapos/recipe/downloadunpacked.py
slapos/recipe/downloadunpacked.py
+3
-0
No files found.
slapos/recipe/downloadunpacked.py
View file @
d85db4b9
...
@@ -174,6 +174,9 @@ def unpack_tarfile_patched(filename, extract_dir, progress_filter=setuptools.arc
...
@@ -174,6 +174,9 @@ def unpack_tarfile_patched(filename, extract_dir, progress_filter=setuptools.arc
prelim_dst
=
os
.
path
.
join
(
extract_dir
,
*
name
.
split
(
'/'
))
prelim_dst
=
os
.
path
.
join
(
extract_dir
,
*
name
.
split
(
'/'
))
if
member
is
not
None
and
(
member
.
isfile
()
or
member
.
isdir
()
or
member
.
islnk
()
or
member
.
issym
()):
if
member
is
not
None
and
(
member
.
isfile
()
or
member
.
isdir
()
or
member
.
islnk
()
or
member
.
issym
()):
# Prepare the link target for makelink().
if
member
.
islnk
():
member
.
_link_target
=
os
.
path
.
join
(
extract_dir
,
member
.
linkname
)
final_dst
=
progress_filter
(
name
,
prelim_dst
)
final_dst
=
progress_filter
(
name
,
prelim_dst
)
if
final_dst
:
if
final_dst
:
if
final_dst
.
endswith
(
os
.
sep
):
if
final_dst
.
endswith
(
os
.
sep
):
...
...
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