On Wed, Oct 20, 2010 at 11:04:19PM +0300, Ville Skyttä wrote:
> Not sure why it was done in the first place; maybe because of
> fragility of resolvedep screen-scraping?  We no longer do that.
> ---
>  py/mock/backend.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/py/mock/backend.py b/py/mock/backend.py
> index 81a98d0..4ad5963 100644
> --- a/py/mock/backend.py
> +++ b/py/mock/backend.py
> @@ -531,7 +531,7 @@ class Root(object):
>              self._callHooks('prebuild')
>  
>              self.doChroot(
> -                ["bash", "--login", "-c", 'rpmbuild -bb --target %s --nodeps 
> %s' % (self.rpmbuild_arch, chrootspec)],
> +                ["bash", "--login", "-c", 'rpmbuild -bb --target %s %s' % 
> (self.rpmbuild_arch, chrootspec)],
>                  shell=False,
>                  logger=self.build_log, timeout=timeout,
>                  uid=self.chrootuid,
> -- 
> 1.7.2.3

its done because you cant trust that the rpm in the chroot can access
the rpm database that was created by the hosts rpm.

-1 to this patch

Dennis

Attachment: pgpYb5HJB9Dqj.pgp
Description: PGP signature

--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to