de-p1st-pacman: check for [de-p1st] repo

This commit is contained in:
Daniel Langbein 2021-11-13 17:43:42 +01:00
parent d98416fefc
commit d116797130
3 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# stdout: modified config # stdout: modified config
set -e set -e
# save stdin (content of /etc/mkinitcpio.conf) in variable # save stdin in variable
stdin="$(cat)" stdin="$(cat)"
# assert MODULES is empty # assert MODULES is empty

View File

@ -2,7 +2,7 @@
_pkgname=pacman _pkgname=pacman
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.2.3 pkgver=0.2.4
pkgrel=1 pkgrel=1
pkgdesc="pacman with configuration" pkgdesc="pacman with configuration"
arch=('any') arch=('any')

View File

@ -3,7 +3,7 @@
# stdout: modified config # stdout: modified config
set -e set -e
# save stdin (content of /etc/mkinitcpio.conf) in variable # save stdin in variable
stdin="$(cat)" stdin="$(cat)"
# Enable parallel downloads # Enable parallel downloads
@ -15,6 +15,9 @@ echo "$stdin" | sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
# Enable multilib repository # Enable multilib repository
printf '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' printf '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
# Assert de-p1st is not enabled
! echo "$stdin" | grep --quiet '^\[de-p1st\].*$'
# de-p1st mirror # de-p1st mirror
printf '\n' printf '\n'
printf 'Include = /etc/pacman.d/de-p1st\n' printf 'Include = /etc/pacman.d/de-p1st\n'