purl-spec
purl-spec copied to clipboard
Namespace clarification for third-party Debian/Ubuntu Package
The deb type says:
The namespace is the "vendor" name such as "debian" or "ubuntu". It is not case sensitive and must be lowercased.
However, there are scenarios where the vendor is neither of debian or ubuntu, such as when installing a package from a third-party deb repo, such as https://bell-sw.com/pages/repositories/#apt-repository-deb-based-linux-distributions
The packages from such a repository might be functional on both debian/ubuntu, and the "vendor" distinction might not be appropriate.
- Can namespace be marked optional in
debtype for such usecases? It is unclear right now. - If not, should "debian" be suggested as the default namespace.
Debian repositories contain an (optional) metadata field "Origin" in the Release file. Coincidentally it contains "Debian" for Debian upstream and "Ubuntu" for Ubuntu.
Other providers are supposed to add their own name there. So this seems like the correct source for the "vendor" PURL qualifier.
Since it is optional - what happens in case of a missing Origin.
what happens in case of a missing Origin.
No idea. Either make it optional or empty.