Script Index


/var/lib/sorcery/modules/libqueue

Synopsis

Set of functions used by sorcery for queue generation


function update_install_queue()

Parameters:

Description

Checks all installed spells for newer versions, and creates an install queue.


function update_security_install_queue()

Parameters:

Description

Finds all installed spells that need an update due to security reasons and creates an install queue.


function find_security_updates()

Parameters:

Description

Find all spells that need to be updated due to security reasons. Checks the version caches and compares them to the installed one.


function find_updates()

Parameters:

Description

Find all spells that need to be updated (for any reason). Checks the version caches and compares them to the installed one.


function does_spell_need_update()

Parameters:

Description

Frontend routine to encapsulate whether or not a spell needs updating Used by lazy dependency resolution


function does_spell_need_update_sub()

Parameters:

Description

The slow way of determining if a spell needs to be updated. Doesn't use the version cache and is also needed for checking multiversioned spells.


function update_install_queue_sub()

Parameters:

Description

Common code between update_install_queue, update_security_install_queue and does_spell_need_update


function update_install_queue_sub2()

Parameters:

Description

Slow higher-level check if a spell needs to be updated


function list_install_queue()

Parameters:

Stdout

install queue

Description

List files in install queue, give user chance to modify it.


function install_queue_history()

Parameters:

Stdout

history

Description

Display the history of the install queue for review


function pop_queue()

Parameters:

Description

The first argument is the name of the file containing the queue. If a second argument is given, any items in the queue that match the second argument are removed from the queue. Otherwise, the top line of the queue is removed, and returned.


function push_queue()

Parameters:

Description

The first argument is the name of the file containing the queue. The second argument is an item to add to the end of the queue. If the item exists anywhere in the queue, the item is removed from the queue before being added at the end.


function pop_install_queue()

Parameters:

Description

The first argument is the name of the file that installed correctly and will be removed from the install file (this makes a failure of the casting of the queue not have to recast completed spells).


function push_install_queue()

Parameters:

Description

Adds the given spell to the install queue and removes it from the remove queue.


function push_remove_queue()

Parameters:

Description

Adds the given spell to the remove queue and removes it from the install queue.