summaryrefslogtreecommitdiff
path: root/build/parseReqs.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/parseReqs.c')
-rw-r--r--build/parseReqs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/build/parseReqs.c b/build/parseReqs.c
index 48e469e24..e2377964b 100644
--- a/build/parseReqs.c
+++ b/build/parseReqs.c
@@ -114,11 +114,6 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN,
N = xmalloc((re-r) + 1);
rstrlcpy(N, r, (re-r) + 1);
- /* Check for weird characters in Requires/Provides, etc.*/
- if (r[0] != '/') {
- if (charCheck(spec, N, re-r, ".-_+()")) return RPMRC_FAIL;
- }
-
/* Parse EVR */
v = re;
SKIPWHITE(v);
@@ -172,7 +167,7 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN,
}
EVR = xmalloc((ve-v) + 1);
rstrlcpy(EVR, v, (ve-v) + 1);
- if (charCheck(spec, N, ve-v, ".-_+")) return RPMRC_FAIL;
+ if (rpmCharCheck(spec, EVR, ve-v, ".-_+")) return RPMRC_FAIL;
re = ve; /* ==> next token after EVR string starts here */
} else
EVR = NULL;