Skip to content

Conversation

@ziadhany
Copy link
Collaborator

@ziadhany ziadhany commented Sep 18, 2025

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
subdir = qualifiers.get("subdir") or "noarch"
req_type = qualifiers.get("type")

def _conda_base_for_channel(channel: str) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is inside the function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TG1999 I just wanted to keep it simple and I copied this implementation from https://github.com/package-url/packageurl-python/blob/main/src/packageurl/contrib/purl2url.py#L560

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ziadhany why copy this? You can import the build download URL function for getting download URL, check luarocks collector

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, you are right, I will update it.

Fix test code formatting

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Copy link
Contributor

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@TG1999 TG1999 merged commit 32e3817 into aboutcode-org:main Sep 18, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants