Skip to content

Conversation

@JonoYang
Copy link
Member

Signed-off-by: Jono Yang jyang@nexb.com

Signed-off-by: Jono Yang <jyang@nexb.com>
continue

if tarinfo.islnk() or tarinfo.issym():
if skip_symlinks:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pombredanne The docstring says Issue a warning if skip_symlinks is True and links target are missing., but I'm not sure why we would need to issue a warning if we want to skip extracting symlinks entirely? Right now, I'm skipping links but not issuing warnings.

@pombredanne
Copy link
Member

I am closing this in favor of #45

@pombredanne pombredanne deleted the extract_tar-skip-symlinks branch July 30, 2022 13:58
pombredanne added a commit that referenced this pull request Jul 30, 2022
* Introduce a new ExtractEvent that extract_tar() returns and
  contains error and warning messages.
* Extract symlinks correctly.
* do not try to strip leading slash in paths
* do not try to treat broken links specially when extracting links

Replacing: #42
Referenced-by: #44
Reported-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants