Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diffiicult to navigate to sources from report with nested archives #50

Open
AdamMajer opened this issue Mar 1, 2021 · 4 comments
Open
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@AdamMajer
Copy link
Member

A given report with .obscpio archive which contains other archives would have a report like,

MPL-Unspecified: 3 files

node_modules.obscpio._/package._1281/index.js
node_modules.obscpio._/package._1282/index.js
node_modules.obscpio._/package._943/node_modules/spdx-correct/index.js

It would be a lot more helpful to have the output include the name of the inner archives in the filenames. Even if you filter it to only include limited characters set [0-9a-zA-Z_+\-\.] (think XSS) it would be a lot more helpful than the current format.

MPL-Unspecified: 3 files

node_modules.obscpio._/package._1281.some_program_5.4.tgz/index.js
node_modules.obscpio._/package._1282.another_program_1.4.tgz/index.js
node_modules.obscpio._/package._943.magics_23.tgz/node_modules/spdx-correct/index.js
@kraih
Copy link
Member

kraih commented Mar 1, 2021

This is pretty much a duplicate of #8, the naming is decided by File::Unpack.

@kraih kraih added bug Something isn't working duplicate This issue or pull request already exists and removed bug Something isn't working labels Mar 1, 2021
@AdamMajer
Copy link
Member Author

Not sure a duplicate. Maybe the solution is the same but the problem looks different.

@kraih kraih added the bug Something isn't working label Mar 1, 2021
@kraih
Copy link
Member

kraih commented Mar 1, 2021

I've actually renamed the other issue so we can collect all problems with File::Unpack in one place. Maybe that will raise the priority of creating our own module.

@kraih
Copy link
Member

kraih commented Sep 19, 2024

As it happens, we have our own module now and can theoretically make changes. https://github.com/openSUSE/perl-File-Unpack2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants