From 5225a86631eaf463eb3b822dc9632820960a7bd3 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Thu, 18 Sep 2008 14:57:52 +0200 Subject: [PATCH] Move type regression test back to asserts - no need to bother with message translations in this case --- build/rpmfc.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/build/rpmfc.c b/build/rpmfc.c index 1f139b4..24a7992 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -1718,30 +1718,18 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg) /* Add dependency dictionary(#dependencies) */ if (rpmtdFromArgi(&td, RPMTAG_DEPENDSDICT, fc->ddictx)) { - if (rpmtdType(&td) != RPM_INT32_TYPE) { - rc = RPMRC_FAIL; - rpmlog(rc, _("Container not of 32bit data type.\n")); - goto exit; - } + assert(rpmtdType(&td) == RPM_INT32_TYPE); headerPut(pkg->header, &td, HEADERPUT_DEFAULT); } /* Add per-file dependency (start,number) pairs (#files) */ if (rpmtdFromArgi(&td, RPMTAG_FILEDEPENDSX, fc->fddictx)) { - if (rpmtdType(&td) != RPM_INT32_TYPE) { - rc = RPMRC_FAIL; - rpmlog(rc, _("Container not of 32bit data type.\n")); - goto exit; - } + assert(rpmtdType(&td) == RPM_INT32_TYPE); headerPut(pkg->header, &td, HEADERPUT_DEFAULT); } if (rpmtdFromArgi(&td, RPMTAG_FILEDEPENDSN, fc->fddictn)) { - if (rpmtdType(&td) != RPM_INT32_TYPE) { - rc = RPMRC_FAIL; - rpmlog(rc, _("Container not of 32bit data type.\n")); - goto exit; - } + assert(rpmtdType(&td) == RPM_INT32_TYPE); headerPut(pkg->header, &td, HEADERPUT_DEFAULT); } -- 2.7.4