Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Ismael Luceno (7949009d5fe343e40d35b432ec4e740a3d1c4d44)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by Ismael Luceno (7949009d5fe343e40d35b432ec4e740a3d1c4d44)
  • Date: Mon, 11 Apr 2016 03:53:42 +0000

GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:

var/lib/sorcery/modules/libqueue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7949009d5fe343e40d35b432ec4e740a3d1c4d44
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

libqueue: Fix default $awk_version_compare

Differing versions should be represented by a negative value.

diff --git a/var/lib/sorcery/modules/libqueue
b/var/lib/sorcery/modules/libqueue
index 7be01af..0c3a257 100755
--- a/var/lib/sorcery/modules/libqueue
+++ b/var/lib/sorcery/modules/libqueue
@@ -157,12 +157,12 @@ if [ "$LIBQUEUE_VERCMP" = newer ]; then
}
'
else
- awk_version_compare='function version_cmp(v1, v2) { return v1 != v2 }'
+ awk_version_compare='function version_cmp(v1, v2) { return -(v1 != v2) }'
fi
function version_compare_gt() {
awk "$awk_version_compare"'
BEGIN {
- exit !(version_cmp(ARGV[1], ARGV[2]) > 0)
+ exit !(version_cmp(ARGV[1], ARGV[2]) < 0)
}
' "$@"
}



  • [SM-Commit] GIT changes to master sorcery by Ismael Luceno (7949009d5fe343e40d35b432ec4e740a3d1c4d44), Ismael Luceno, 04/10/2016

Archive powered by MHonArc 2.6.24.

Top of Page