mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 13:07:20 +08:00
Use only the repos in pacman.conf
This commit is contained in:
parent
7b7636ad1d
commit
25c60b3915
@ -4,7 +4,7 @@
|
||||
# maintainer: abveritas[at]chakra-project[dot]org>
|
||||
|
||||
pkgname=mirror-check
|
||||
pkgver=0.2
|
||||
pkgver=0.3
|
||||
pkgrel=1
|
||||
pkgdesc="Checks whether the locally used mirror is synced with the main"
|
||||
arch=('x86_64')
|
||||
@ -12,7 +12,7 @@ url="http://www.chakra-project.org"
|
||||
license=('GPL2')
|
||||
makedepends=('asciidoc')
|
||||
source=('mirror-check')
|
||||
md5sums=('a22424aa8e66a6dc066a77589a272d0e')
|
||||
md5sums=('ab1b55077d637afdfcd5e9149ed01e52')
|
||||
|
||||
package() {
|
||||
cd ${srcdir}
|
||||
|
@ -5,7 +5,7 @@
|
||||
# mirror-check [REPOS...] checks repos given in REPOS
|
||||
|
||||
if [[ "$#" == "0" ]]; then
|
||||
repos=('core' 'platform' 'desktop' 'apps' 'games' 'lib32' 'testing' 'lib32-testing')
|
||||
repos="$(cat /etc/pacman.conf | grep -v "#" | grep -v "options" | grep "\[" | cut -d[ -f2 | cut -d] -f1 | uniq | sed "{:q;N;s/\n/ /g;t q}")"
|
||||
else
|
||||
repos=($*)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user