diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-22 11:07:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-22 11:07:03 +0200 |
commit | e6f10cabb7fbdba6fd11bcd109dbe765285c762c (patch) | |
tree | 350e0bf1230e930d2c9512eab396a80ffc98b610 /bpkg/build.cxx | |
parent | 56af938cd423c1b6730d753ba1ce7b70cd660c29 (diff) |
Implement dependents check in drop command
Also, add support for commands to return program status.
Diffstat (limited to 'bpkg/build.cxx')
-rw-r--r-- | bpkg/build.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/build.cxx b/bpkg/build.cxx index ec9de3b..1aeb35d 100644 --- a/bpkg/build.cxx +++ b/bpkg/build.cxx @@ -731,7 +731,7 @@ namespace bpkg map_type map_; }; - void + int build (const build_options& o, cli::scanner& args) { tracer trace ("build"); @@ -1029,12 +1029,12 @@ namespace bpkg } if (o.print_only ()) - return; + return 0; // Ask the user if we should continue. // if (!(o.yes () || yn_prompt ("continue? [Y/n]", 'y'))) - return; + return 1; // Ok, we have the green light. The overall action plan is as follows. // @@ -1230,5 +1230,7 @@ namespace bpkg text << "updated " << sp->name << " " << sp->version; } } + + return 0; } } |