#642 pyrpkg.spec.SpecFile: More lenient parser for Source/Patch lines
Merged by onosek. Opened by fweimer.
fweimer/rpkg source-whitespace  into  master

Download 642.patch

RPM syntax allows whitespace before the colon, and a few Fedora
packages use them. This results in an error like this one:

$ fedpkg srpm
Not downloading unused cups-bjnp-2.0.3.tar.gz

error: Bad source: …/cups-bjnp/cups-bjnp-2.0.3.tar.gz: No such file or directory
Could not execute srpm: Failed to execute command.

This commits changes the regular expression to accept the additional
whitespace.

Signed-off-by: Florian Weimer fweimer@redhat.com

As the original author of the spec file parser
(copied and modified from another codebase of course),
I approve this change.

rebased onto cc5aa6a2b061b554e8c6b6701daf257e8de9e213

Thanks for the change.

Pull-Request has been merged by onosek

Metadata