Check the real RPMs/SRPMs dir in chroot, instead of hardcode
authoryuanhao <yuanhao.zhou@intel.com>
Tue, 17 Sep 2013 06:31:20 +0000 (02:31 -0400)
committeryuanhao <yuanhao.zhou@intel.com>
Thu, 26 Sep 2013 10:49:08 +0000 (06:49 -0400)
commit809a9458943300b7e98b0e793a6645724b33b23d
tree86c77b2d2a46c8f69ade491aff9b3fc6e60cdc87
parent268b5e16f24db532c53427bd856f15ba7e14fb39
Check the real RPMs/SRPMs dir in chroot, instead of hardcode

For root user, the output dir of RPMs in chroot is /usr/src/packages/RPMS, not
/home/abuild/rpmbuild.
Get the output dir of RPMs/SRPMs using the following command
RPMs:  sudo chroot $BUILD_ROOT rpm --eval "%{_rpmdir}"
SRPMs: sudo chroot $BUILD_ROOT rpm --eval "%{_srcrpmdir}"

Fixes: #1326

Change-Id: I8fd79e2b67d9bb2e04274d8d563ed49038e820fa
data/gbs
depanneur