Relax checking of dependency tags
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 7 Mar 2013 08:03:34 +0000 (10:03 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 11 Jun 2014 14:48:02 +0000 (17:48 +0300)
Allow any value for dependency tags (Requires, BuildRequires etc).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
build/parseReqs.c

index 1507090d3b4cdf0b893189f5a0bc2e6ab22623c1..f9fb2fcda680372a88c7c306932ab0e2b2b017d0 100644 (file)
@@ -123,8 +123,9 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTagVal tagN,
         * the spec's encoding so we only check what we can: plain ascii.
         */
        if (isascii(r[0]) && !(risalnum(r[0]) || r[0] == '_' || r[0] == '/')) {
-           emsg = _("Dependency tokens must begin with alpha-numeric, '_' or '/'");
-           goto exit;
+           rpmlog(RPMLOG_INFO,
+                  _("line %s: Dependency tokens must begin with alpha-numeric, '_' or '/': %s\n"),
+                  spec->lineNum, spec->line);
        }
 
        re = r;