feat: Add blacklist check for pkgbase

Also check "pkgbase" against our blacklist.

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2024-02-17 15:55:46 +01:00
parent 057685f304
commit d050b626db
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
3 changed files with 53 additions and 0 deletions

View file

@ -223,5 +223,40 @@ export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
git add PKGBUILD .SRCINFO
git commit -q -m 'Initial import'
git checkout -q --orphan refs/namespaces/forbidden/refs/heads/master
cat >PKGBUILD <<-EOF
pkgname=foobar3
pkgver=1
pkgrel=1
pkgdesc='aurweb test package.'
url='https://aur.archlinux.org/'
license=('MIT')
arch=('any')
depends=('python-pygit2')
source=()
md5sums=()
package() {
echo 'Hello world!'
}
EOF
cat >.SRCINFO <<-EOF
pkgbase = forbidden
pkgdesc = aurweb test package.
pkgver = 1
pkgrel = 1
url = https://aur.archlinux.org/
arch = any
license = MIT
depends = python-pygit2
pkgname = foobar3
EOF
git add PKGBUILD .SRCINFO
git commit -q -m 'Initial import'
git checkout -q refs/namespaces/foobar/refs/heads/master
)