diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2013-09-04 10:20:20 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2013-09-04 10:21:47 +0300 |
commit | 3cec26230f0bf484b9ded6aefdaa213725668bed (patch) | |
tree | 99bea17954a6bc286b29247a4e6e316b568bee32 /build | |
parent | 816ec8a8b7e2097f3a6938432c966d67212c2ba2 (diff) | |
download | rpm-3cec26230f0bf484b9ded6aefdaa213725668bed.tar.gz |
Propagate return codes from rpmfcHelper() in rpmfcHelperFoo()
- Doesn't affect anything yet as currently rpmfcHelper() always returns 0
and rpmfcHelperFoo() returns are ignored...
Diffstat (limited to 'build')
-rw-r--r-- | build/rpmfc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c index 2f0eac400..625a4f23c 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -518,32 +518,30 @@ exit: * Run per-interpreter Provides: dependency helper. * @param fc file classifier * @param nsdep class name for interpreter (e.g. "perl") - * @return 0 + * @return 0 on success */ static int rpmfcHelperProvides(rpmfc fc, const char * nsdep) { if (fc->skipProv) return 0; - rpmfcHelper(fc, nsdep, "provides", &fc->provides, RPMSENSE_FIND_PROVIDES, RPMTAG_PROVIDENAME); - - return 0; + return rpmfcHelper(fc, nsdep, "provides", &fc->provides, + RPMSENSE_FIND_PROVIDES, RPMTAG_PROVIDENAME); } /** * Run per-interpreter Requires: dependency helper. * @param fc file classifier * @param nsdep class name for interpreter (e.g. "perl") - * @return 0 + * @return 0 on success */ static int rpmfcHelperRequires(rpmfc fc, const char * nsdep) { if (fc->skipReq) return 0; - rpmfcHelper(fc, nsdep, "requires", &fc->requires, RPMSENSE_FIND_REQUIRES, RPMTAG_REQUIRENAME); - - return 0; + return rpmfcHelper(fc, nsdep, "requires", &fc->requires, + RPMSENSE_FIND_REQUIRES, RPMTAG_REQUIRENAME); } /* Only used for elf coloring and controlling RPMTAG_FILECLASS inclusion now */ |