diff options
author | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2018-12-28 17:37:16 +0300 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2019-01-02 09:23:31 +0900 |
commit | 3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2 (patch) | |
tree | f0154f7b7fc17707b74ded3a0eedb90f0be21bc9 | |
parent | 5d9c5468fcf90ae255643cd5c7adec048bd0ca0c (diff) | |
download | rpm-3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2.tar.gz rpm-3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2.tar.bz2 rpm-3ff61ee2a67258a5e075a1d4e21ca4a2e35032d2.zip |
Notify about buildinfo parsing fail, fix leaksubmit/tizen_base/20190108.221718accepted/tizen/base/20190111.055034sandbox/dkson95/merge
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.c | 2 |
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; } |