Use only the repos in pacman.conf

This commit is contained in:
Manuel 2012-12-22 23:41:19 +00:00
parent 7b7636ad1d
commit 25c60b3915
2 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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