Parse the summary correctly. Added a test for that.

This commit is contained in:
Dave Cross 2010-02-09 17:23:08 +00:00
parent 0d680d989e
commit 1b443acd25
2 changed files with 4 additions and 5 deletions

View file

@ -60,7 +60,7 @@ sub parse_file {
/^Name:\s*(\S+)/ and $self->{name} = $1;
/^Version:\s*(\S+)/ and $self->{version} = $1;
/^Release:\s*(\S+)/ and $self->{release} = $1;
/^Summary:\s*(\S+)/ and $self->{summary} = $1;
/^Summary:\s*(.+)/ and $self->{summary} = $1;
/^License:\s*(.+)/ and $self->{license} = $1;
/^Group:\s*(\S+)/ and $self->{group} = $1;
/^URL:\s*(\S+)/ and $self->{url} = $1;