From f3c57d0941ead602ff8f2936cd30019567ff42de Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Mar 2018 15:37:08 +0200 Subject: Tweak status command output --- bdep/status.cli | 5 +++++ bdep/status.cxx | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/bdep/status.cli b/bdep/status.cli index a8d1e49..6a562da 100644 --- a/bdep/status.cli +++ b/bdep/status.cli @@ -57,6 +57,11 @@ namespace bdep "Also print the status of all dependencies, recursively." } + bool --old-available|-o + { + "Print old available versions." + } + bool --fetch|-f { "Perform the \cb{fetch} command prior to printing the status." diff --git a/bdep/status.cxx b/bdep/status.cxx index ade5381..814e21b 100644 --- a/bdep/status.cxx +++ b/bdep/status.cxx @@ -34,9 +34,15 @@ namespace bdep "--shallow", "dir:" + prj.string ()); + // Don't show the hold status since the only packages that will normally + // be held are the project's. But do show dependency constraints. + // run_bpkg (o, "status", "-d", cfg, + "--no-hold", + "--constraint", + (o.old_available () ? "--old-available" : nullptr), (o.immediate () ? "--immediate" : o.recursive () ? "--recursive" : nullptr), -- cgit v1.1