Skip to Content.
Sympa Menu

sm-sorcery-bugs - [Sm-Sorcery-Bugs] [Bug 1369] New: errors in /var/lib/sorcery/modules/libdepends

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [Sm-Sorcery-Bugs] [Bug 1369] New: errors in /var/lib/sorcery/modules/libdepends
  • Date: Tue, 15 Oct 2002 08:13:40 -0400

http://bugs.sourcemage.org/show_bug.cgi?id=1369

Summary: errors in /var/lib/sorcery/modules/libdepends
Product: Sorcery
Version: Devel
Platform: x86
OS/Version: other
Status: NEW
Severity: normal
Priority: P1
Component: Cast
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: christian AT subigo.dk


these errors are all, as far as I can tell, in confer_with_user_on_depends()

first of all, the fact that the depends-fix is activated, even if NO depends
is
in the list, eg:
-----
cers@freakbox:~$ sudo cast -c beep
In order to cast beep, the following spells are going to be cast:
beep
Do you wish these cast? [y]

Saving dependency preferences... [ beep ] done
Sorting the spells to find the best order...
<snip>
-----
that's, if not anything else, a quite annoying cosmetic error...
and..
there _seem_ to be a syntax-problem in the file... 'vi' thinks so, in any
case..
(line 455 to 474 in sorcery-devel 20021014)

in case of changes being done to the file, I'll paste the source to the
function
below (line 439 to 475):
-----
# This assumes that the graph has been constructed already
function confer_with_user_on_depends()
{ # $1=var to put final spells into, $* is list of spells to cast

local spellList
local node tempList
local i j

SPELLS=${SPELLS:-$*}
MAIN_SPELLS="$SPELLS"

unset SPELL
unset LAST_SPELL

until ! ( [[ $MAIN_SPELLS ]] && [[ `all_spells_not_installed` ]] ) ; do

message "In order to cast ${SPELL_COLOR}${MAIN_SPELLS}${DEFAULT_COLOR},
the
following spells are going to be cast:${SPELL_COLOR}" &&
all_spells_not_installed
if query "${DEFAULT_COLOR}Do you wish these cast?" "y" ; then
break
fi

# At this point, it's ok to assume the user is there, since the question
above defaults to yes.
echo -en "What spell(s) do you wish to remove? "

# remove_selected_depends does the read and modifies the graph and
MAIN_SPELLS
remove_selected_depends

done

if [[ $MAIN_SPELLS ]] && [[ `all_spells_not_installed` ]] ; then
save_depends
else
message "Nothing to cast!"
fi

}
-----



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [Sm-Sorcery-Bugs] [Bug 1369] New: errors in /var/lib/sorcery/modules/libdepends, bugzilla-daemon, 10/15/2002

Archive powered by MHonArc 2.6.24.

Top of Page