Commit 94eeff54 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

adjust repo_ver for pkgs with epoch

parent 5a0a844d
......@@ -84,7 +84,7 @@ build_list_git() {
i=1
for p in $(cat $list); do
header "${1%-git}: $i/$num - $p"
repo_ver=$(sudo chroot ${CHROOT_DIR} pacman -Siy "${p}" 2>/dev/null | grep "Version" | head -1 | cut -d":" -f2 | cut -d ' ' -f2)
repo_ver=$(sudo chroot ${CHROOT_DIR} pacman -Siy "{p}" 2>/dev/null | grep "Version" | head -1 | rev | cut -d: -f1 | rev | sed 's/ //')
[[ -z $repo_ver ]] && repo_ver=0
# update local pkgver
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment