blob: c7ce16bcce3dc5e289c8e2624caba10d0d7ea098 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh -e
# xdowngrade PKGS.xbps... - install XBPS package directly from .xbps file
T=$(mktemp --tmpdir -d xdowngrade-$(date -I).XXXXXXXX)
ln -s -r -t $T/ "$@"
xbps-rindex -a $T/*
pkg=
for f; do
f=${f##*/}
f=${f%.*.*}
pkg="$pkg ${f%-*}"
done
xbps-install -i -R $T -f $pkg
rm -r $T
|