aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-16 15:37:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-16 15:37:08 +0200
commitf3c57d0941ead602ff8f2936cd30019567ff42de (patch)
tree5392002aace3874f0db04a916f8bf07b6f89459a
parent4f6abb0576e810b37d56ad3cafc67fac84682ec2 (diff)
Tweak status command output
-rw-r--r--bdep/status.cli5
-rw-r--r--bdep/status.cxx6
2 files changed, 11 insertions, 0 deletions
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),