From 6602e62bc134e248ed7320e2171e4f451fc5de0e Mon Sep 17 00:00:00 2001 From: Pekka Ristola Date: Fri, 15 Dec 2023 17:39:50 +0200 Subject: [PATCH] r-*: strip dot from the end of pkgdesc --- BioArchLinux/r-biodbexpasy/PKGBUILD | 2 +- BioArchLinux/r-biodbncbi/PKGBUILD | 2 +- BioArchLinux/r-flowworkspace/PKGBUILD | 2 +- BioArchLinux/r-flowworkspacedata/PKGBUILD | 2 +- BioArchLinux/r-rificomparative/PKGBUILD | 2 +- lilac-extensions/lilac_r_utils.py | 3 +++ 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/BioArchLinux/r-biodbexpasy/PKGBUILD b/BioArchLinux/r-biodbexpasy/PKGBUILD index b354598f60..9248e467fa 100644 --- a/BioArchLinux/r-biodbexpasy/PKGBUILD +++ b/BioArchLinux/r-biodbexpasy/PKGBUILD @@ -5,7 +5,7 @@ _pkgver=1.6.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=3 -pkgdesc="a library for connecting to Expasy ENZYME database." +pkgdesc="a library for connecting to Expasy ENZYME database" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=(AGPL3) diff --git a/BioArchLinux/r-biodbncbi/PKGBUILD b/BioArchLinux/r-biodbncbi/PKGBUILD index a43506d23a..d4e3bf0dea 100644 --- a/BioArchLinux/r-biodbncbi/PKGBUILD +++ b/BioArchLinux/r-biodbncbi/PKGBUILD @@ -5,7 +5,7 @@ _pkgver=1.6.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=3 -pkgdesc="a library for connecting to NCBI Databases." +pkgdesc="a library for connecting to NCBI Databases" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=(AGPL3) diff --git a/BioArchLinux/r-flowworkspace/PKGBUILD b/BioArchLinux/r-flowworkspace/PKGBUILD index 7b19c16110..6115b8660f 100644 --- a/BioArchLinux/r-flowworkspace/PKGBUILD +++ b/BioArchLinux/r-flowworkspace/PKGBUILD @@ -6,7 +6,7 @@ _pkgver=4.14.1 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=1 -pkgdesc="Infrastructure for representing and interacting with gated and ungated cytometry data sets." +pkgdesc="Infrastructure for representing and interacting with gated and ungated cytometry data sets" arch=(x86_64) url="https://bioconductor.org/packages/$_pkgname" license=(AGPL3) diff --git a/BioArchLinux/r-flowworkspacedata/PKGBUILD b/BioArchLinux/r-flowworkspacedata/PKGBUILD index 7b0c6838eb..c02def79a0 100644 --- a/BioArchLinux/r-flowworkspacedata/PKGBUILD +++ b/BioArchLinux/r-flowworkspacedata/PKGBUILD @@ -5,7 +5,7 @@ _pkgver=3.14.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=1 -pkgdesc="A data package containing two flowJo, one diva xml workspace and the associated fcs files as well as three GatingSets for testing the flowWorkspace, openCyto and CytoML packages." +pkgdesc="A data package containing two flowJo, one diva xml workspace and the associated fcs files as well as three GatingSets for testing the flowWorkspace, openCyto and CytoML packages" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=(GPL2) diff --git a/BioArchLinux/r-rificomparative/PKGBUILD b/BioArchLinux/r-rificomparative/PKGBUILD index eecbf9a908..9fb06778df 100644 --- a/BioArchLinux/r-rificomparative/PKGBUILD +++ b/BioArchLinux/r-rificomparative/PKGBUILD @@ -5,7 +5,7 @@ _pkgver=1.2.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=2 -pkgdesc="'rifiComparative' compares the output of rifi from two different conditions." +pkgdesc="'rifiComparative' compares the output of rifi from two different conditions" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=(GPL3) diff --git a/lilac-extensions/lilac_r_utils.py b/lilac-extensions/lilac_r_utils.py index 1b87151a30..02bb3769b8 100644 --- a/lilac-extensions/lilac_r_utils.py +++ b/lilac-extensions/lilac_r_utils.py @@ -349,6 +349,9 @@ def check_pkgdesc(pkg: Pkgbuild, desc: Description, cfg: CheckConfig): if title_lower.startswith(prefix): title = title[len(prefix):] break + # detect and remove trailing dot from the title + if len(title) > 1 and title[-1] == "." and title[-2] != ".": + title = title[:-1] if cfg.expect_title is not None: if pkg.pkgdesc == title: