Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvertError: min() arg is an empty sequence #71

Open
dhodovsk opened this issue Sep 16, 2020 · 0 comments
Open

ConvertError: min() arg is an empty sequence #71

dhodovsk opened this issue Sep 16, 2020 · 0 comments

Comments

@dhodovsk
Copy link
Contributor

dhodovsk commented Sep 16, 2020

Packages:

  • c8: mozilla-filesystem, opencl-filesystem, xorg-x11-drivers, basesystem, color-filesystem

Convert output

convert(origin='/workdir/rpms/mozilla-filesystem:c8', dest='/workdir/src/mozilla-filesystem:c8')
Running command get_sources.sh in /workdir/rpms/mozilla-filesystem
output = 
Running rpmbuild in /workdir/rpms/mozilla-filesystem
Traceback (most recent call last):
  File "/usr/local/bin/dist2src", line 11, in <module>
    load_entry_point('dist-git-to-source-git==0.1.dev143+g585c7a4.d20200916', 'console_scripts', 'dist2src')()
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/dist2src/cli.py", line 82, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/dist2src/cli.py", line 208, in convert
    d2s.convert(origin_branch, dest_branch)
  File "/usr/local/lib/python3.6/site-packages/dist2src/core.py", line 320, in convert
    self.run_prep()
  File "/usr/local/lib/python3.6/site-packages/dist2src/core.py", line 271, in run_prep
    self._enforce_autosetup()
  File "/usr/local/lib/python3.6/site-packages/dist2src/core.py", line 227, in _enforce_autosetup
    prep_lines = self.dist_git_spec.spec_content.section("%prep")
  File "/usr/local/lib/python3.6/site-packages/dist2src/core.py", line 187, in dist_git_spec
    sources_dir=self.dist_git_path / "SOURCES/",
  File "/usr/local/lib/python3.6/site-packages/packit/specfile.py", line 53, in __init__
    super().__init__(path=str(path), sources_location=str(sources_dir))
  File "/usr/local/lib/python3.6/site-packages/rebasehelper/specfile.py", line 135, in __init__
    self._update_data()
  File "/usr/local/lib/python3.6/site-packages/rebasehelper/specfile.py", line 196, in _update_data
    self.main_source_index = self._identify_main_source(self.spc)
  File "/usr/local/lib/python3.6/site-packages/rebasehelper/specfile.py", line 235, in _identify_main_source
    return min([s[1] for s in spec.sources if s[2] == 1])
ValueError: min() arg is an empty sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant