Skip to content

Sync fails on gems with colons in dependency specs #446

@decko

Description

@decko

Version
pulp_gem: 0.7.5

Describe the bug
read_info() in pulp_gem/specs.py:160 uses stmt.split(":") without maxsplit, causing ValueError: too many values to unpack when the value contains colons (e.g., dependency specs like activesupport:= 7.0.1).

To Reproduce
Sync any gem whose info file contains colon-bearing metadata (e.g., rails from https://index.rubygems.org/).

Expected behavior
Sync completes without error.

Fix
stmt.split(":", 1) — same pattern already used on line 157.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions