Skip to content

Commit d0d3577

Browse files
committed
Fix colon split in read_info() causing sync failure
Fixes #446 Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6fd212e commit d0d3577

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES/446.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed sync failure on gems with colons in dependency specs (e.g., rails).

pulp_gem/specs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def read_info(relative_path, versions_info):
157157
(item.split(":", maxsplit=1) for item in dependencies.split(","))
158158
)
159159
for stmt in back.split(","):
160-
key, value = stmt.split(":")
160+
key, value = stmt.split(":", 1)
161161
if key == "checksum":
162162
gem_info["checksum"] = value
163163
elif key == "ruby":

0 commit comments

Comments
 (0)