Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Module status field backwards compatibility
  • Loading branch information
cavalier38 committed Nov 11, 2012
1 parent 747132d commit c6ea3aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/modules.lunar
Expand Up @@ -82,7 +82,7 @@ list_moonbase() {
# purpose : return a list of installed (or held) modules
list_installed() {
debug_msg "list_installed ($@)"
sed "s/:[[:digit:]]*:\\([^:]\\++\\)\\?installed\\(+[^:]\\+\\)\\?:.*$//" "$MODULE_STATUS"
sed "s/:[[:digit:]]*:\\([^:]\\++\\)\\?\\(installed\\|held\\)\\(+[^:]\\+\\)\\?:.*$//" "$MODULE_STATUS"
}


Expand Down Expand Up @@ -300,7 +300,7 @@ module_installed()
{
debug_msg "module_installed ($@)"

has_module_state $1 "installed"
has_module_state $1 "(installed|held)"
}


Expand Down
2 changes: 1 addition & 1 deletion prog/lvu
Expand Up @@ -1260,7 +1260,7 @@ main() {
installed)
if [ -z "$2" ] ; then
grep -E '[:+]installed[:+]' "$MODULE_STATUS" | view_file
grep -E '[:+](installed|held)[:+]' "$MODULE_STATUS" | view_file
elif [ -n "$(installed_version $2)" ] ; then
echo "$(installed_version $2)"
else
Expand Down

0 comments on commit c6ea3aa

Please sign in to comment.