Mock SCM Issue

Jarod Watkins jwatkins at jarodw.com
Wed Oct 26 21:04:18 UTC 2011


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 on
a CentOS 5 box.

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

Thanks,
Jarod


More information about the buildsys mailing list