Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (e688ec7a7882cd079b308c2034b5ad422da9e530)

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 grimoire by Ismael Luceno (e688ec7a7882cd079b308c2034b5ad422da9e530)
  • Date: Sat, 13 Feb 2021 18:26:39 +0000

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

ChangeLog | 3 +++
VDEPENDS | 17 +++++++++--------
2 files changed, 12 insertions(+), 8 deletions(-)

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

vdepends: replace is_version_less with a simpler is_version_ge

commit d84e2c9c7c127194f81fc8a2a34ff6b4d02fda9a
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

vdepends: update ChangeLog

commit 5e51f44bb6b609c3320a7617e172061a24346c11
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

vdepends: Clean subdeps when looping

diff --git a/ChangeLog b/ChangeLog
index 0a994b9..d8be671 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2021-02-13 Ismael Luceno <ismael AT sourcemage.org>
+ * VDEPENDS: added, move vdepends functionality there
+
2021-02-12 Ismael Luceno <ismael AT sourcemage.org>
* python-pypi/python-requests-toolbelt: new spell, Useful classes
and functions to be used with python-requests
diff --git a/VDEPENDS b/VDEPENDS
index 825856b..f1ba8dd 100644
--- a/VDEPENDS
+++ b/VDEPENDS
@@ -10,18 +10,18 @@
# binutils[LIBERTY] >= 2.35 flags: --with-liberty
# EOF

-is_version_less() {
- local v="$1
-$2"
- [ "$(sort -V <<< "$v")" = "$v" ] && [ "$1" != "$2" ]
+is_version_ge() {
+ local v="$2
+$1"
+ [ "$(sort -V <<< "$v")" = "$v" ]
}

vdepends_vercheck() {
case "$2" in
- ('>') is_version_less "$3" "$1" ;;
- ('>=') ! is_version_less "$1" "$3" ;;
- ('<') is_version_less "$1" "$3" ;;
- ('<=') ! is_version_less "$3" "$1" ;;
+ ('>') ! is_version_ge "$3" "$1" ;;
+ ('>=') is_version_ge "$1" "$3" ;;
+ ('<') ! is_version_ge "$1" "$3" ;;
+ ('<=') is_version_ge "$3" "$1" ;;
('=') [ "x$1" = "x$3" ] ;;
('!=') [ "x$1" != "x$3" ] ;;
(*) message vdepends: \
@@ -35,6 +35,7 @@ vdepends() {
local dep features flags rest
local op depver iver gver
while read dep rest; do
+ features=
case "$dep" in
(\#*) # comment line
continue



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (e688ec7a7882cd079b308c2034b5ad422da9e530), Ismael Luceno, 02/13/2021

Archive powered by MHonArc 2.6.24.

Top of Page