Fix RPM build: no debuginfo packages SA-778 SA-759
[git-tools-moved-to-github.git] / id-deb-build / id-pbuild.sh
index 5372897..e72f052 100755 (executable)
@@ -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)