From 781f7fe6d211d551c657bf66a08f051ee26bda6e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 9 Sep 2015 13:17:16 +0000 Subject: [PATCH] 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. --- id-deb-build/id-pbuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.7.10.4