Skip to content

BUG: creating package brow6el generates unexpected PURL values #222

@DennisClark

Description

@DennisClark

Describe the bug
Creating a package in DejaCode from https://codeberg.org/janantos/brow6el/archive/main.tar.gz results in unexpected PURL values returned form packageurl-python.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Packages user list view in DejaCode
  2. Click on Add Package
  3. enter https://codeberg.org/janantos/brow6el/archive/main.tar.gz and click Add
  4. Note that the generated PURL is pkg:generic/main.tar.gz?download_url=https://codeberg.org/janantos/brow6el/archive/main.tar.gz even though it correctly records the Download URL.

Alternatively, without DejaCode, use url2purl.get_purl with https://codeberg.org/janantos/brow6el/archive/main.tar.gz as input.

Expected behavior
A better PURL for this should be something like pkg:codeberg/janantos/brow6el@main

Context (OS, Browser, Device, etc.):
DejaCode v5.5.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions