update url in PKGBUILD for BIOC

This commit is contained in:
sukanka 2022-11-04 09:59:56 +08:00 committed by GitHub
parent c5b59a20f8
commit 2e5e8794cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,12 @@ def archive_pkg_pkgbuild(bioconductor_version=3.15, _pkgname="_pkgname"):
changed = False
flag = False
for i in range(len(lines)):
if lines[i].startswith("url=") and '//bioconductor.org' in lines[i]:
lines[i] = lines[i].replace(
"packages/", f"packages/{bioconductor_version}/")
changed = True
if lines[i].startswith("source="):
flag = True
if flag: