#1133 tito scm method: wrong subdir and diagnosis
Closed: Fixed 4 years ago by praiskup. Opened 4 years ago by praiskup.

I have configured wrong "subdirectory" for python-copr package (copr instead of python). The builder-live.log should say something like "wrong subdirectory, not found" - but this is what happens instead:

Running: git checkout master

cmd: ['git', 'checkout', 'master']
cwd: /tmp/tmpbee_15xt/copr
rc: 0
stdout: Your branch is up to date with 'origin/master'.
stderr: Already on 'master'

Running: tito build --srpm --output /var/lib/copr-rpmbuild/resultsl6t6f3sr

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/copr_rpmbuild/helpers.py", line 59, in run_cmd
    cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd, preexec_fn=preexec_fn)
  File "/usr/lib64/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpbee_15xt/copr/copr': '/tmp/tmpbee_15xt/copr/copr'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/copr-rpmbuild", line 129, in main
    action(args, config)
  File "/usr/bin/copr-rpmbuild", line 210, in build_srpm
    produce_srpm(task, config, resultdir)
  File "/usr/bin/copr-rpmbuild", line 157, in produce_srpm
    provider.produce_srpm()
  File "/usr/lib/python3.7/site-packages/copr_rpmbuild/providers/scm.py", line 121, in produce_srpm
    return run_cmd(cmd, cwd=self.repo_subpath)
  File "/usr/lib/python3.7/site-packages/copr_rpmbuild/helpers.py", line 62, in run_cmd
    raise RuntimeError("Package with `{}` command is not installed".format(cmd[0]))
RuntimeError: Package with `tito` command is not installed

Metadata Update from @frostyx:
- Issue assigned to frostyx

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1300 Merged 4 years ago