summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchPackagesUpdate12
1 files changed, 10 insertions, 2 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 12fdcfb2..29ec51a4 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -734,11 +734,19 @@ else
# a modified official package
offVer="$( \
- ssh paule@jeti100 'find '"${pkgDirBase}"' \( -type d \( -name armv6h -o -name armv7h -o -name aarch64 -o -name arm -o -name archlinux32 \) -prune -false \) -o -type f -name "'"${paket}"'-*.pkg.tar.xz" -exec basename "{}" \; ' | \
+ {
+ printf '%s-%s%s-%s-%s.pkg.tar.xz\n' \
+ "${pkgname}" \
+ "${epoch:+${epoch}:}" \
+ "${pkgver}" \
+ "${pkgrel}" \
+ "${arch}"
+ ssh paule@jeti100 'find '"${pkgDirBase}"' \( -type d \( -name armv6h -o -name armv7h -o -name aarch64 -o -name arm -o -name archlinux32 \) -prune -false \) -o -type f -name "'"${paket}"'-*.pkg.tar.xz" -exec basename "{}" \; '
+ } | \
sort -V | \
tail -n1 \
)"
- if [ ! "${offVer}" == "${pkgname}-${epoch:+${epoch}:}${pkgver}-${pkgrel%%.*}-${arch}.pkg.tar.xz" ]
+ if [ ! "${offVer}" == "${pkgname}-${epoch:+${epoch}:}${pkgver}-${pkgrel}-${arch}.pkg.tar.xz" ]
then
>&2 echo "${pkgname} ist in den offiziellen Quellen aktueller: ${offVer}."
err=true