Permalink
Browse files

Do not fail on 'opam list' when no packages exist

  • Loading branch information...
1 parent aba4647 commit 24922f1a47b9a5b405c95c29762c08eb52e84998 @samoht committed Mar 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/client/opamClient.ml
View
@@ -310,7 +310,8 @@ let names_of_regexp t ~installed_only ~name_only ~case_sensitive ~all regexps =
|| partial_match descr))
) names in
- if OpamPackage.Name.Map.is_empty names then
+ if not (OpamPackage.Set.is_empty t.packages)
+ && OpamPackage.Name.Map.is_empty names then
OpamGlobals.error_and_exit "No packages found."
else
names

0 comments on commit 24922f1

Please sign in to comment.