Enable dash(-) in spec file. 89/299189/1
authorxuhy <huayong.xu@samsung.com>
Thu, 21 Sep 2023 08:34:26 +0000 (16:34 +0800)
committerxuhy <huayong.xu@samsung.com>
Thu, 21 Sep 2023 08:34:26 +0000 (16:34 +0800)
Change-Id: I268a3e663b9228f4ad809fd9d330a438b6c916ba

build/parseReqs.c

index 4d7e8e8bfbe2738e2ffc48055991a44c95c233df..ea16a4ef40cf7e04e0a7144e50eb4a18b425f527 100644 (file)
@@ -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] == '/') {