[CentOS-devel] Mock SCM Issue

Wed Oct 26 18:26:00 UTC 2011
Jarod Watkins <jwatkins at jarodw.com>

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

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.

Is this a known issue or am I doing something wrong?

Thanks,
Jarod