Repomaker: consider noarch when collect packages
authorEd Bartosh <eduard.bartosh@intel.com>
Mon, 16 Sep 2013 21:09:45 +0000 (00:09 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Mon, 16 Sep 2013 21:18:20 +0000 (00:18 +0300)
commit63408b0fa0d7942519615ed9a9766945e1dd5bb3
tree6794a49036818b234e59456e3ae323e1d8a36325
parent026cb8fcf58ac7f8784849c06027ebfe81e6adf2
Repomaker: consider noarch when collect packages

When repomaker collects packages from live repository it should also
consider noarch packages.

Currently it skips noarch/ directories. If submission also contains
architecture-dependent packages noarch packages just silently skipped.
However, when submission contains only noarch packages then nothing is
copied and this causes image creation failure. We were 'lucky' that
submissions we've tested didn't contain noarch packages. That's why we
didn't notice this bug.

This is a serious bug and requires to be fixed also in pre_release_obs
code, where only binary architectures are processed.

This changes fixes only repomaker. With this fix repomaker is able to
collect noarch packages.

This change partly fixes issue 1324.

Change-Id: Iba6f978ef2207aa9562f4e46c1bc596142f73ef4
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
common/repomaker.py