From 970539947e803155d72e49ea4812bb15b0b37fa4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 17 2011 08:20:47 +0000 Subject: Propage to the second build the option passed to the first build --- diff --git a/r2spec/r2spec_obj.py b/r2spec/r2spec_obj.py index a513ec6..ee6112c 100644 --- a/r2spec/r2spec_obj.py +++ b/r2spec/r2spec_obj.py @@ -360,7 +360,8 @@ class R2rpm(R2spec): # Rebuild the package when build has failed the first time if self.build.outcode: # == 1 when build failed and 0 when build passed print 'Re-building... %s' % self.pack.name - self.build.build(specfile) + self.build.build(specfile, mock_config=args.mock_config, + mock_resultdir=args.mock_resultdir) self.__check_build_output() except BuildDepencenciesError, err: print 'Missing dependencies to build %s' % self.pack.name