Skip to content

Conversation

rickysarraf
Copy link
Owner

Be more resilient when parsing the signature file

The assumption that the signature file is well crafted is wrong. Over
time, there have been numerous reports from many derivatives, that add
many extra bits to the output. Obviously, apt never guaranteed a machine
readable format for its output.

With this change, we are being more resilient in dealing with each line
in the signature file. Things like malforned file (cdrom lines -
historical ones) or empty new lines should all be handled.

apt-offline should treat the signature file dumb and very carefully and
resiliently parse the content.

Closes: #214
@rickysarraf rickysarraf self-assigned this May 25, 2023
@rickysarraf
Copy link
Owner Author

This is failing in the tests, as in exception are thrown for the size variable which needs to transition from str => int

@rickysarraf rickysarraf merged commit 53bcd9c into master May 25, 2023
@rickysarraf rickysarraf deleted the wip/ritesh/resilient-stripper branch May 25, 2023 09:40
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.

1 participant