Fix RPM build: no debuginfo packages SA-778 SA-759
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 9 Sep 2015 13:17:16 +0000 (13:17 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 9 Sep 2015 13:17:16 +0000 (13:17 +0000)
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

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)