#166 Get target_arch in stable way
Merged by cqi. Opened by cqi.
cqi/rpkg fix-get-target_arch  into  master

Download 166.patch

Original translate_arch is replaced with a stable way to get
target_arch by executing rpmspec. This is requires for running tests in
various machines that have different arches. This is useful for
building packages in Copr and Koji especially, that is because we have
to build packages for i386, e.g. fedora-24-i386, and the build might
happen in an ARM builder machine sometimes. So, we have to ensure to get

  • target arch i686 on i386
  • target arch armv7hl on ARM

Signed-off-by: Chenxiong Qi cqi@redhat.com

rebased

Looks good to me. Locally on x86_64 it works.

Pull-Request has been merged by cqi

Pull-Request has been merged by cqi

Metadata