about summary refs log tree commit diff
path: root/xdowngrade
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-10-26 15:36:47 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-10-26 15:36:47 +0100
commit3037d2945009fb767fe9de041ec85919c6f0cd76 (patch)
treeefee572b900a7dddb68fa7b590faef518a63602c /xdowngrade
parent825bbd392bad1450e0dd5d6f2a1455c47d5bab8a (diff)
downloadxtools-3037d2945009fb767fe9de041ec85919c6f0cd76.tar.gz
xtools-3037d2945009fb767fe9de041ec85919c6f0cd76.tar.xz
xtools-3037d2945009fb767fe9de041ec85919c6f0cd76.zip
xdowngrade: fix for architectures with - in name.
Closes #28.
Diffstat (limited to 'xdowngrade')
-rwxr-xr-xxdowngrade1
1 files changed, 1 insertions, 0 deletions
diff --git a/xdowngrade b/xdowngrade
index 443f357..c7ce16b 100755
--- a/xdowngrade
+++ b/xdowngrade
@@ -7,6 +7,7 @@ xbps-rindex -a $T/*
 pkg=
 for f; do
 	f=${f##*/}
+	f=${f%.*.*}
 	pkg="$pkg ${f%-*}"
 done
 xbps-install -i -R $T -f $pkg