projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cce0fb4
)
Handle all dependency tags in spec via same switch-case fallthrough
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 7 Aug 2012 05:28:26 +0000
(08:28 +0300)
committer
Panu 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
patch
|
blob
|
history
diff --git
a/build/parsePreamble.c
b/build/parsePreamble.c
index
5d3da5f
..
16848ec
100644
(file)
--- 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: