Skip to Content.
Sympa Menu

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

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, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (60a324f697c7c48c3d1b9a2db7fec56e4ed949e0)
  • Date: Sun, 16 Aug 2026 11:42:36 +0000

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

var/lib/sorcery/modules/libdepends | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)

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

libdepends: Fail on a dep on a slot that doesn't exist

diff --git a/var/lib/sorcery/modules/libdepends
b/var/lib/sorcery/modules/libdepends
index 42c9633..5c55849 100755
--- a/var/lib/sorcery/modules/libdepends
+++ b/var/lib/sorcery/modules/libdepends
@@ -746,16 +746,12 @@ depends_resolve_atom() {
return 0
done

- if ! codex_resolve_slot "$1" "$2" __res_slot; then
- # a spell that pins its slot in DETAILS rather than declaring a
- # SLOTS file has no spec to resolve against, so a concrete request
- # is taken at its word and DETAILS has the last one
- [[ $(codex_get_spell_slot_spec "$1") ]] && return 1
- case $2 in
- ''|*'*'*) return 1 ;;
- esac
- __res_slot=$2
- fi
+ # nothing installed answers the atom, so the slot has to be one the
+ # grimoire offers; a spell that pins its slot in DETAILS rather than
+ # declaring a SLOTS file is not taken at its word here, because cast
+ # would refuse that name too -- the pin is only known once DETAILS has
+ # run, and until it has, the spell has the default slot and no other
+ codex_resolve_slot "$1" "$2" __res_slot || return 1
slot_join "$1" "$__res_slot" "$4"
}



  • [[SM-Commit] ] GIT changes to master sorcery by Ismael Luceno (60a324f697c7c48c3d1b9a2db7fec56e4ed949e0), Ismael Luceno, 08/16/2026

Archive powered by MHonArc 2.6.24.

Top of Page