Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Module status field backwards compatibility

  • Loading branch information...
commit c6ea3aa2fc56a3add76c664d6e561e8cbfc4f560 1 parent 747132d
@cavalier38 authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 libs/modules.lunar
  2. +1 −1  prog/lvu
View
4 libs/modules.lunar
@@ -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"
}
@@ -300,7 +300,7 @@ module_installed()
{
debug_msg "module_installed ($@)"
- has_module_state $1 "installed"
+ has_module_state $1 "(installed|held)"
}
View
2  prog/lvu
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.