From: Adam Dickmeiss Date: Wed, 9 Sep 2015 13:17:16 +0000 (+0000) Subject: Fix RPM build: no debuginfo packages SA-778 SA-759 X-Git-Url: http://jira.indexdata.com/?a=commitdiff_plain;h=781f7fe6d211d551c657bf66a08f051ee26bda6e;p=git-tools-moved-to-github.git Fix RPM build: no debuginfo packages SA-778 SA-759 rpm -q --specfile does not return debuginfo package on host (mochi) than on mock (RPM based). rpm is thus called on a real RPM system. --- diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 5372897..e72f052 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -114,7 +114,7 @@ if $upload; then UPLOAD_URI=${UPLOAD_HOST}:${UPLOAD_PATH}/${PRODUCT} echo "Uploading to ${UPLOAD_URI}" if $centos; then - pkg_names=`rpm -q --specfile ${PRODUCT}.spec --queryformat "%{NAME}-%{VERSION}-%{RELEASE}\n"` + pkg_names=`sudo lxc-attach -n mockbuild -- rpm -q --specfile ~/rpmbuild/SPECS/${PRODUCT}.spec --queryformat "%{NAME}-%{VERSION}-%{RELEASE}\n"` for dist in ${CENTOS_DIST}; do case $dist in centos5)