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

repository sync failed - caret sign in package name #9211

Open
ZsBT opened this issue Aug 27, 2024 · 1 comment · May be fixed by #9328
Open

repository sync failed - caret sign in package name #9211

ZsBT opened this issue Aug 27, 2024 · 1 comment · May be fixed by #9328
Assignees
Labels
bug Something isn't working P2

Comments

@ZsBT
Copy link
Contributor

ZsBT commented Aug 27, 2024

Problem description

repo sync fails when a package contains some special characters, e.g. caret sign (^) or tilde (~).
it says ValueError: The value <PACKAGE NAME> cannot be parsed as a NEVRA string.

Steps to reproduce

  1. sync a repo that has a package with caret sign in its name

Uyuni version

Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2024.07-230900.219.1.uyuni3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Uyuni-Server-release-2024.07-230900.219.1.uyuni3.src

Uyuni proxy version (if used)

No response

Useful logs

Syncing Channel 'centosstream8' failed:

Exception reported from uyuni
Time: Tue Aug 27 01:53:17 2024
Exception type <class 'ValueError'>

Exception Handler Information
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/reposync.py", line 787, in sync
    modulemd_importer.import_module_metadata()
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/appstreams.py", line 127, in import_module_metadata
    nevra = self._parse_rpm_name(rpm)
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/appstreams.py", line 305, in _parse_rpm_name
    raise ValueError(f"The value {nevra} cannot be parsed as a NEVRA string.")
ValueError: The value toolbox-0:0.0.99.2^1.git660b6970e998-1.module_el8.5.0+874+6db8bee3.src cannot be parsed as a NEVRA string.

Additional information

No response

@ZsBT ZsBT added bug Something isn't working P5 labels Aug 27, 2024
@ZsBT
Copy link
Contributor Author

ZsBT commented Sep 2, 2024

Maybe this line is responsible:

r"(?P<version>[a-zA-Z0-9._-~]+)-"

I'll look at it.

@cbbayburt cbbayburt self-assigned this Oct 2, 2024
@cbbayburt cbbayburt added P2 and removed P5 labels Oct 2, 2024
@cbbayburt cbbayburt linked a pull request Oct 7, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants