summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2018-12-28 17:37:16 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2019-01-02 09:23:31 +0900
commit3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2 (patch)
treef0154f7b7fc17707b74ded3a0eedb90f0be21bc9
parent5d9c5468fcf90ae255643cd5c7adec048bd0ca0c (diff)
downloadrpm-3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2.tar.gz
rpm-3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2.tar.bz2
rpm-3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2.zip
Without setting 'rc' code packing is failed with OK message: [ 2687s] error: Can't parse BUILDINFO tag: unknown error [ 2687s] Wrote: /home/abuild/rpmbuild/RPMS/armv7l/tizen-locale-0.1-2.49.armv7l.rpm As the result rpm was not wrote and process exits successfully without errors. Change-Id: I56a2a99b4347e056f79beda21180d1013148f4b6
-rw-r--r--build/pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/pack.c b/build/pack.c
index b6c808e09..eb87eca17 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -341,6 +341,8 @@ static rpmRC writeRPM(Header *hdrp, unsigned char ** pkgidp, const char *fileNam
char **strings = NULL;
if ((err = poptParseArgvString(buildinfo, &count, &strings))) {
+ rc = RPMRC_FAIL;
+ free(buildinfo);
rpmlog(RPMLOG_ERR, _("Can't parse BUILDINFO tag: %s\n"), poptStrerror(xx));
goto exit;
}