summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-26 14:32:44 +0200
committerErich Eckner <git@eckner.net>2017-10-26 14:32:44 +0200
commitec16a2d9f13d44807a615a6647a904085a882d08 (patch)
tree9929901ada72233266bce6be121647ebc49ef65c
parentc71a40209079785554937543d7d79c746c3ec8ed (diff)
downloadarchlinuxewe.git.save-ec16a2d9f13d44807a615a6647a904085a882d08.tar.xz
archPackagesUpdate: only check if upstream is _newer_ (vs. equal), revert 9d7d7296
-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