mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 10:17:14 +08:00
mirror-check: Update URL to package repositories
This commit is contained in:
parent
3d5edb46ca
commit
da480fa7a1
@ -4,14 +4,14 @@
|
||||
|
||||
pkgname=mirror-check
|
||||
pkgver=1.0
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Checks whether the locally used mirror is synced with the main"
|
||||
arch=('x86_64')
|
||||
url="http://www.chakra-project.org"
|
||||
url="http://www.chakraos.org"
|
||||
license=('GPL2')
|
||||
makedepends=('asciidoc')
|
||||
source=('mirror-check' 'mirror-check.desktop')
|
||||
md5sums=('189ad036df9629cc39d63b17e7b7aa9f'
|
||||
md5sums=('48e35a4e632185c666e2e9199060cae5'
|
||||
'5a0a0a1774ecd4808827e4c3cd6eca7c')
|
||||
|
||||
package() {
|
||||
|
@ -32,7 +32,7 @@ function get_database() {
|
||||
# Get databases
|
||||
local mirror="$(grep '^[^#]erver' /etc/pacman.d/mirrorlist | head -1 | cut -d' ' -f3 |sed 's,$repo.*,'"${1}/x86_64/${1}.db.tar.gz,")"
|
||||
wget -qO /tmp/.${UID}mirrordb.tmp "$mirror"
|
||||
local cmirror="http://rsync.chakraos.org/${1}/x86_64/${1}.db.tar.gz"
|
||||
local cmirror="http://rsync.chakraos.org/packages/${1}/x86_64/${1}.db.tar.gz"
|
||||
wget -qO /tmp/.${UID}maindb.tmp "$cmirror"
|
||||
}
|
||||
|
||||
@ -126,4 +126,4 @@ else
|
||||
|
||||
cli_mode
|
||||
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user