Commit fa88749d authored by Derek Stavis's avatar Derek Stavis

install: Implement package dependency installation

parent 2fa7a5ec
function omf.bundle.install function omf.bundle.install
set bundle $OMF_CONFIG/bundle test -n "$argv";
and set bundle $argv
or set bundle $OMF_CONFIG/bundle
if test -f $bundle if test -f $bundle
set packages (omf.packages.list --installed) set packages (omf.packages.list --installed)
......
...@@ -34,6 +34,7 @@ function omf.install -a name_or_url ...@@ -34,6 +34,7 @@ function omf.install -a name_or_url
echo (omf::dim)"Installing $install_type $name"(omf::off) echo (omf::dim)"Installing $install_type $name"(omf::off)
if omf.repo.clone $url $OMF_PATH/$parent_path/$name if omf.repo.clone $url $OMF_PATH/$parent_path/$name
omf.bundle.install $OMF_PATH/$parent_path/$name/bundle
omf.bundle.add $install_type $name_or_url omf.bundle.add $install_type $name_or_url
__omf.install.success "$install_type $name" __omf.install.success "$install_type $name"
......
...@@ -19,6 +19,9 @@ function omf.update -a name ...@@ -19,6 +19,9 @@ function omf.update -a name
not test -e "$path/.git"; and continue not test -e "$path/.git"; and continue
omf.repo.pull $path; and set return_success omf.repo.pull $path; and set return_success
set -q return_success;
and omf.bundle.install $path/bundle
end end
set -q return_success; and __omf.update.success "$name" set -q return_success; and __omf.update.success "$name"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment