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

dsc: Discard PGP from dsc files #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ColinKinloch
Copy link
Contributor

It's common for dsc files to be signed with PGP clearsign. This results in rfc822-like throwing with the error Line 1 doesn't contain a colon.

This MR adds the function discard_pgp which uses split_once twice to extract the payload from a clearsigned dsc file, returning the original buffer if it doesn't match the format.

It's common for dsc files to be signed with PGP clearsign. This results
in `rfc822-like` throwing with the error `Line 1 doesn't contain a colon`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant