add new type of biocon

This commit is contained in:
starsareintherose 2022-01-11 15:29:09 +00:00
parent b556575a5d
commit d956f59099

View file

@ -48,7 +48,8 @@ class PKGBUILDGenerator(object):
else: else:
bioconductor_descs = [] bioconductor_descs = []
for url in [f"{self.bioconductor_mirror}/packages/release/bioc/src/contrib/PACKAGES", for url in [f"{self.bioconductor_mirror}/packages/release/bioc/src/contrib/PACKAGES",
f"{self.bioconductor_mirror}/packages/release/data/annotation/src/contrib/PACKAGES" f"{self.bioconductor_mirror}/packages/release/data/annotation/src/contrib/PACKAGES",
f"{self.bioconductor_mirror}/packages/release/data/experiment/src/contrib/PACKAGES"
]: ]:
r = requests.get(url) r = requests.get(url)
if r.status_code == requests.codes.ok: if r.status_code == requests.codes.ok:
@ -234,6 +235,9 @@ class PKGBUILDGenerator(object):
elif idx == 1: elif idx == 1:
url = f"{self.bioconductor_mirror}/packages/release/data/annotation/src/contrib/{rpkgname}_{rpkgver}.tar.gz" url = f"{self.bioconductor_mirror}/packages/release/data/annotation/src/contrib/{rpkgname}_{rpkgver}.tar.gz"
source = "https://bioconductor.org/packages/release/data/annotation/src/contrib/${_pkgname}_${_pkgver}.tar.gz" source = "https://bioconductor.org/packages/release/data/annotation/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
elif idx == 2:
url = f"{self.bioconductor_mirror}/packages/release/data/experiment/src/contrib/{rpkgname}_{rpkgver}.tar.gz"
source = "https://bioconductor.org/packages/release/data/experiment/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
result["project_url"] = 'https://bioconductor.org/packages/${_pkgname}' result["project_url"] = 'https://bioconductor.org/packages/${_pkgname}'
elif repo == "cran": elif repo == "cran":
rpkgver = self.get_cran_ver(rpkgname) rpkgver = self.get_cran_ver(rpkgname)