Christian Hesse pushed to branch main at Arch Linux / Packaging / Packages /
pacredir
Commits:
9b2442ed by Christian Hesse at 2024-03-04T12:50:35+01:00
upgpkg: 0.4.7-2: pacman 6.1 with support for cache server!
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- pacredir.install
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = pacredir
pkgdesc = redirect pacman requests, assisted by avahi service discovery
pkgver = 0.4.7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/eworm-de/pacredir
install = pacredir.install
arch = x86_64
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=pacredir
pkgver=0.4.7
-pkgrel=1
+pkgrel=2
pkgdesc='redirect pacman requests, assisted by avahi service discovery'
arch=('x86_64')
url='https://github.com/eworm-de/pacredir'
=====================================
pacredir.install
=====================================
@@ -1,22 +1,23 @@
#!/bin/sh
message_server_error_limit() {
- echo ' > With its 6.x release `pacman` now supports a server error
limit,'
- echo ' > which breaks `pacredir`. But `pacman` 7.x will fix that with
support'
- echo ' > for cache servers. Install `pacman` with that features
backported'
- echo ' > from this repository:'
- echo ' > [pacredir]'
- echo ' > Server = https://pkgbuild.com/~eworm/$repo/$arch/'
+ echo ' > With its 6.1 release `pacman` now supports cache servers, and
upstream'
+ echo ' > version is compatible with `pacredir` again. Hooray!'
+
+ if pacman-conf -l | grep -q '^pacredir$'; then
+ echo ' > The custom `pacredir` resository with patched `pacman` is still'
+ echo ' > configured. Please drop it from your configuration!'
+ fi
}
post_install() {
- echo ' > For instructions visit:
https://github.com/eworm-de/pacredir#usage'
- message_server_error_limit
+ echo ' > For instructions visit: https://github.com/eworm-de/pacredir#usage'
+ message_server_error_limit
}
post_upgrade() {
- # return if old package version greater 0.4.7-0...
- (( $(vercmp $2 '0.4.7-0') > 0 )) && return
+ # return if old package version greater 0.4.7-1...
+ (( $(vercmp $2 '0.4.7-1') > 0 )) && return
- message_server_error_limit
+ message_server_error_limit
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pacredir/-/commit/9b2442edb7248c16ffa4f1bd221c18c492f3a74c
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pacredir/-/commit/9b2442edb7248c16ffa4f1bd221c18c492f3a74c
You're receiving this email because of your account on gitlab.archlinux.org.