#1084 Cloning repo with broken symlink leads to a crash
Closed: Fixed 5 years ago Opened 5 years ago by lsedlar.

The repo contains a broken symlink.

>>> from pungi.wrappers import scm
>>> scm.get_dir_from_scm({"scm": "git", "repo": "https://pagure.io/workstation-ostree-config.git", "branch": "master", "dir": "."}, "here")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pungi/wrappers/scm.py", line 299, in get_dir_from_scm
    scm.export_dir(scm_repo, scm_dir, scm_branch=scm_branch, target_dir=tmp_dir)
  File "pungi/wrappers/scm.py", line 124, in export_dir
    copy_all(os.path.join(tmp_dir, scm_dir), target_dir)
  File "pungi/util.py", line 567, in copy_all
    shutil.copy2(source, destination)
  File "/usr/lib64/python2.7/shutil.py", line 144, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 96, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/tmp/tmpG8GBrn/./fedora-atomic-workstation.json'

Metadata Update from @lsedlar:
- Issue set to the milestone: 4.1.31

5 years ago

Login to comment on this ticket.

Metadata