On Wed, 26 Oct 2011 17:04:18 -0400 Jarod Watkins <[email protected]> wrote:
> Hello, > I am trying to build an RPM with Mock via a git repo. It seems like I > run into an issue with the Sources option inside my spec file: > > > DEBUG: Initializing SCM integration... > DEBUG: SCM checkout command: git clone git://gitrepo reponame > DEBUG: SCM checkout post command: git checkout master > DEBUG: SCM checkout directory: /tmp/tmp2178L4.mock-scm.reponame > DEBUG: Executing command: ['git', 'clone', 'git://gitrepo', 'reponame'] > DEBUG: Cloning into reponame... > DEBUG: Child returncode was: 0 > DEBUG: Executing command: ['git', 'checkout', 'master'] > DEBUG: Already on 'master' > DEBUG: Child returncode was: 0 > DEBUG: Fetched sources from SCM > DEBUG: Preparing SCM sources > ERROR: iteration over non-sequence > Traceback (most recent call last): > File "/usr/sbin/mock", line 864, in ? > main(retParams) > File "/usr/sbin/mock", line 672, in main > (options.sources, options.spec) = scmWorker.prepare_sources() > File "/usr/lib/python2.4/site-packages/mockbuild/scm.py", line 111, > in prepare_sources > for (filename, num, flags) in rpm_spec.sources: > TypeError: iteration over non-sequence This is complaining that rpm_spec.sources is not a sequence. What command line did you use to invoke mock? > > My spec file is a normal spec file that can be built via Mock when not > attempting to use it from Git. My Mock version is 1.0.22 from EPEL on > a CentOS 5 box. > > Is this a known issue or am I doing something wrong? > > Thanks, > Jarod > -- > buildsys mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/buildsys -- buildsys mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/buildsys
