From: Jindrich Novy Date: Thu, 18 Sep 2008 12:57:52 +0000 (+0200) Subject: Move type regression test back to asserts X-Git-Tag: rpm-4.6.0-rc1~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5225a86631eaf463eb3b822dc9632820960a7bd3;p=platform%2Fupstream%2Frpm.git Move type regression test back to asserts - no need to bother with message translations in this case --- 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); }