summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxuhy <huayong.xu@samsung.com>2023-09-21 16:34:26 +0800
committerxuhy <huayong.xu@samsung.com>2023-09-21 16:34:26 +0800
commitbe49a6f267887c8e2bdab37ee37c81df90f5cb93 (patch)
treeb3a574d7751814d7ba5cb80336c040b438005260
parent57a52b2abe2204c05bf0fb323870ed10e380f913 (diff)
downloadlibrpm-tizen-be49a6f267887c8e2bdab37ee37c81df90f5cb93.tar.gz
librpm-tizen-be49a6f267887c8e2bdab37ee37c81df90f5cb93.tar.bz2
librpm-tizen-be49a6f267887c8e2bdab37ee37c81df90f5cb93.zip
Enable dash(-) in spec file.
Change-Id: I268a3e663b9228f4ad809fd9d330a438b6c916ba
-rw-r--r--build/parseReqs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/parseReqs.c b/build/parseReqs.c
index 4d7e8e8bf..ea16a4ef4 100644
--- a/build/parseReqs.c
+++ b/build/parseReqs.c
@@ -49,8 +49,11 @@ static rpmRC checkDep(rpmSpec spec, char *N, char *EVR, char **emsg)
* the spec's encoding so we only check what we can: plain ascii.
*/
if (isascii(N[0]) && !(risalnum(N[0]) || N[0] == '_' || N[0] == '/')) {
- rasprintf(emsg, _("Dependency tokens must begin with alpha-numeric, '_' or '/'"));
- return RPMRC_FAIL;
+ //rasprintf(emsg, _("Dependency tokens must begin with alpha-numeric, '_' or '/'"));
+ rpmlog(RPMLOG_INFO,
+ _("line %d: Dependency tokens must begin with alpha-numeric, '_' or '/': %s\n"),
+ spec->lineNum, spec->line);
+ //return RPMRC_FAIL;
}
if (EVR) {
if (N[0] == '/') {