get target arch from build conf if target is set
authorZhang Qiang <qiang.z.zhang@intel.com>
Tue, 18 Jun 2013 05:09:38 +0000 (13:09 +0800)
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>
Thu, 20 Jun 2013 09:39:16 +0000 (02:39 -0700)
commit9855745f38f51387ef73f283a2a1fc8a69d7f53a
treec90a8ed10e11d6f5ddef5c8aee5e59da663308f3
parentb68f9d1def2002066905a10a5d59634cba1a1f13
get target arch from build conf if target is set

This fix the bug that different arch packages generated from gbs
and obs if 'Target:' set in build conf, eg:

    %ifarch i586
    Target: i686-tizen-linux
    %endif

    %ifarch armv7hl
    Target: armv7hl-tizen-linux
    %endif

    %ifarch armv7l
    Target: armv7l-tizen-linux
    %endif

In that case, obs will generated i686 package, but gbs will generated i586.

Change-Id: If879f364ba12db737714172e57c5566f7f7633d8
depanneur