Handle all dependency tags in spec via same switch-case fallthrough
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 7 Aug 2012 05:28:26 +0000 (08:28 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 7 Aug 2012 05:28:26 +0000 (08:28 +0300)
- Requires and OrderWithRequires take extra qualifiers, but other
  than that they areall handled the same through parseRCPOT()

build/parsePreamble.c

index 5d3da5f..16848ec 100644 (file)
@@ -778,9 +778,7 @@ static rpmRC handlePreambleTag(rpmSpec spec, Package pkg, rpmTagVal tag,
                     spec->lineNum, rpmTagGetName(tag), spec->line);
            goto exit;
        }
-       if (parseRCPOT(spec, pkg, field, tag, 0, tagflags))
-           goto exit;
-       break;
+       /* fallthrough */
     case RPMTAG_PREREQ:
     case RPMTAG_BUILDPREREQ:
     case RPMTAG_BUILDREQUIRES: