archlinux: ensure [options] section is present in all pacman drop-ins

Create an empty [options] dropin by default or pacman will fail
when no dropin is present
This commit is contained in:
Olivier MEDOC 2017-10-23 20:22:04 +02:00
parent 5fdcb19685
commit 26659d4e51
3 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,7 @@ changelog=
source=(
PKGBUILD.qubes-ensure-lib-modules.service PKGBUILD.qubes-update-desktop-icons.hook
PKGBUILD-qubes-pacman-options.conf
PKGBUILD-qubes-repo-3.2.conf
PKGBUILD-qubes-repo-4.0.conf
)
@ -81,6 +82,7 @@ package() {
# Install pacman.d drop-ins (at least 1 drop-in must be installed or pacman will fail)
mkdir -p "${pkgdir}/etc/pacman.d"
install -m 644 "$srcdir/PKGBUILD-qubes-pacman-options.conf" "${pkgdir}/etc/pacman.d/10-qubes-options.conf"
# Install pacman repository
release=$(echo "$pkgver" | cut -d '.' -f 1,2)

View File

@ -0,0 +1 @@
[options]

View File

@ -121,7 +121,7 @@ if [ -d /etc/pacman.d ]; then
### All modifications here will be lost.
### If you want to override some of this settings, create another file under
### /etc/pacman.d
[options]
XferCommand = http_proxy=$PROXY_ADDR /usr/bin/curl -C - -f %u > %o
EOF
else