File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -647,21 +647,6 @@ def build_deb_download_url(purl_str: str) -> str:
647647 return f"{ base_url } { pool_path } /{ filename } "
648648
649649
650- @download_router .route ("pkg:qpkg/.*" )
651- def build_qpkg_download_url (purl : str ) -> str :
652- purl = PackageURL .from_string (purl )
653- repo_url = purl .qualifiers .get ("repo_url" )
654-
655- if not repo_url :
656- raise ValueError ("repository_url qualifier is required for qpkg purl resolution" )
657-
658- if not purl .namespace or not purl .name or not purl .version :
659- raise ValueError ("namespace, name, and version must be present in qpkg purl" )
660-
661- path = f"{ purl .namespace } /{ purl .name } /{ purl .version } .qpkg"
662- return f"{ repo_url .rstrip ('/' )} /{ path } "
663-
664-
665650@download_router .route ("pkg:apk/.*" )
666651def build_apk_download_url (purl ):
667652 """
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ def test_purl2url_get_download_url():
112112 "pkg:alpm/arch/pacman@6.0.1-1?arch=x86_64" : "https://archive.archlinux.org/packages/p/pacman/pacman-6.0.1-1-x86_64.pkg.tar.zst" ,
113113 "pkg:deb/debian/attr@1:2.4.48-6?arch=amd64" : "https://deb.debian.org/debian/pool/main/a/attr/attr_2.4.48-6_amd64.deb" ,
114114 "pkg:deb/debian/attr@1:2.4.48-6?arch=amd64&repository_url=http://archive.debian.org/debian" : "http://archive.debian.org/debian/pool/main/a/attr/attr_2.4.48-6_amd64.deb" ,
115- "pkg:qpkg/blackberry/com.qnx.sdp@7.0.0.SGA201702151847?repo_url=http://repo.blackberry.com" : "http://repo.blackberry.com/blackberry/com.qnx.sdp/7.0.0.SGA201702151847.qpkg" ,
116115 "pkg:apk/acct@6.6.4-r0?arch=x86&alpine_version=v3.11&repo=main" : "https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/acct-6.6.4-r0.apk" ,
117116 # From `download_url` qualifier
118117 "pkg:github/yarnpkg/yarn@1.3.2?download_url=https://github.com/yarnpkg/yarn/releases/download/v1.3.2/yarn-v1.3.2.tar.gz&version_prefix=v" : "https://github.com/yarnpkg/yarn/releases/download/v1.3.2/yarn-v1.3.2.tar.gz" ,
You can’t perform that action at this time.
0 commit comments