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

RebaseHelperError: Failed to parse SPEC file: ["autopatch: invalid option -- 'M'", 'error: Unknown option M in autop... #188

Open
sentry-io bot opened this issue Mar 11, 2021 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 11, 2021

Sentry Issue: DIST2SRC-UPDATE-20

ValueError: can't parse specfile

  File "rebasehelper/helpers/rpm_helper.py", line 182, in parse_spec
    result = rpm.spec(tmp.name, flags) if flags is not None else rpm.spec(tmp.name)

RebaseHelperError: Failed to parse SPEC file: ["autopatch: invalid option -- 'M'", 'error: Unknown option M in autopatch(vp:)', 'error: line 135: %autopatch -p 1 -M 50000']
  File "rebasehelper/helpers/rpm_helper.py", line 202, in get_rpm_spec
    spec = cls.parse_spec(path, flags=rpm.RPMSPEC_ANYARCH)
  File "rebasehelper/helpers/rpm_helper.py", line 188, in parse_spec
    ': ' + str(output) if output else '')) from e

ValueError: can't parse specfile

  File "rebasehelper/helpers/rpm_helper.py", line 182, in parse_spec
    result = rpm.spec(tmp.name, flags) if flags is not None else rpm.spec(tmp.name)

RebaseHelperError: Failed to parse SPEC file: ["autopatch: invalid option -- 'M'", 'error: Unknown option M in autopatch(vp:)', 'error: line 135: %autopatch -p 1 -M 50000']
(8 additional frame(s) were not displayed)
...
  File "dist2src/core.py", line 270, in dist_git_spec
    sources_dir=self.dist_git_path / "SOURCES/",
  File "packit/specfile.py", line 52, in __init__
    super().__init__(path=str(path), sources_location=str(sources_dir))
  File "rebasehelper/specfile.py", line 132, in __init__
    self.spc: rpm.spec = RpmHelper.get_rpm_spec(self.path, self.sources_location, self.predefined_macros)
  File "rebasehelper/helpers/rpm_helper.py", line 205, in get_rpm_spec
    spec = cls.parse_spec(path)
  File "rebasehelper/helpers/rpm_helper.py", line 188, in parse_spec
    ': ' + str(output) if output else '')) from e
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

0 participants