describe all packages works again

This commit is contained in:
Sheldon Els 2016-04-23 19:02:47 +02:00
parent f7e1561067
commit 355b519c1e
2 changed files with 3 additions and 9 deletions

View File

@ -1,10 +1,4 @@
function omf.cli.describe -a name function omf.cli.describe -a name
switch (count $argv) omf.packages.describe $name
case 1 return 0
omf.packages.describe $name
return 0
case '*'
echo (omf::err)"Invalid number of arguments"(omf::off)
return 1
end
end end

View File

@ -1,7 +1,7 @@
function omf.packages.describe -a name function omf.packages.describe -a name
if test (count $argv) -eq 0 if test (count $argv) -eq 0
for package in (omf.packages.list --database) for package in (omf.packages.list --database)
echo $package - (omf.describe $package) echo $package - (omf.packages.describe $package)
end end
else else
set package_path $OMF_PATH/db/pkg/$name set package_path $OMF_PATH/db/pkg/$name