xbps-checkvers: try to not see something like ${var##foo} as comment
This commit is contained in:
committed by
Duncan Overbruck
parent
204b9b630a
commit
0691054a59
@@ -509,7 +509,7 @@ rcv_get_pkgver(rcv_t *rcv)
|
|||||||
vlen--;
|
vlen--;
|
||||||
}
|
}
|
||||||
comment = strchr(v, '#');
|
comment = strchr(v, '#');
|
||||||
if (comment && comment < p) {
|
if (comment && comment < p && (comment > v && comment[-1] == ' ')) {
|
||||||
while (v[vlen-1] != '#') {
|
while (v[vlen-1] != '#') {
|
||||||
vlen--;
|
vlen--;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user