fix last ':' checking patch - source and patch lines cna have #'s!
CVS patchset: 403 CVS date: 1996/02/22 20:28:19
This commit is contained in:
parent
787d0ca102
commit
e10aa661f3
|
@ -470,10 +470,15 @@ static int find_preamble_line(char *line, char **s)
|
|||
}
|
||||
if (!p->token) return 0;
|
||||
*s = line + p->len;
|
||||
|
||||
/* Unless this is a source or a patch, a ':' better be next */
|
||||
if (p->tag != RPMTAG_SOURCE && p->tag != RPMTAG_PATCH) {
|
||||
*s += strspn(*s, " \t");
|
||||
if (**s != ':') {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
*s += strspn(*s, ": \t");
|
||||
return p->tag;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue