summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-08-07 08:28:26 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-08-07 08:28:26 +0300
commit7c70bdea1a3e6d16d5a345965632d255f3f821ec (patch)
treeba013dc00dd3d893a90208ce1ef342c14215531d
parentcce0fb4387089db4b860a042bf0a163fd3ea7b6f (diff)
downloadlibrpm-tizen-7c70bdea1a3e6d16d5a345965632d255f3f821ec.tar.gz
librpm-tizen-7c70bdea1a3e6d16d5a345965632d255f3f821ec.tar.bz2
librpm-tizen-7c70bdea1a3e6d16d5a345965632d255f3f821ec.zip
Handle all dependency tags in spec via same switch-case fallthrough
- Requires and OrderWithRequires take extra qualifiers, but other than that they areall handled the same through parseRCPOT()
-rw-r--r--build/parsePreamble.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 5d3da5f46..16848ec76 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -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: