init_buildsystem: fail early on reorder failure
authorFrank Lichtenheld <flichtenheld@astaro.com>
Wed, 5 Sep 2012 12:52:48 +0000 (14:52 +0200)
committerStephan Kulow <coolo@suse.de>
Mon, 24 Sep 2012 14:57:58 +0000 (16:57 +0200)
commit677a5514e26cfd6f2e6498e237cf85e58567b110
tree95165b0a12936854ae8cbfe121aaa64f087aa9a4
parent53f35599848969b64e588db96cd0c1e20eb40002
init_buildsystem: fail early on reorder failure

If reorder fails for some reason (e.g. a rpm is missing)
currently build will happily try to remove all packages
and leave the chroot in a completely broken state. Also
the error message is hard to find since there comes so
many output after it.

Just bail out directly after the failure.
init_buildsystem