summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-summary.c
diff options
context:
space:
mode:
authorDan Nicholson <nicholson@endlessm.com>2017-11-09 02:15:11 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-09 17:15:59 +0000
commit374f7fc9733370f1814e6c97cb03a240bca08814 (patch)
tree4c8e342ab46fb88fb9f9c83888530cff0dfb2394 /src/ostree/ot-builtin-summary.c
parent9856ed38404b709877d94a4c3b7996be7a4fe84f (diff)
downloadostree-374f7fc9733370f1814e6c97cb03a240bca08814.tar.gz
bin/summary: Fix --raw option
I wanted to inspect a summary file the other day and was saddened to find it was broken: $ ostree summary --raw error: No option specified; use -u to update summary Fix the test to do the normal thing of passing just --raw without --view. It's legal to pass --raw and --view, but it shouldn't be a requirement. Closes: #1336 Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-builtin-summary.c')
-rw-r--r--src/ostree/ot-builtin-summary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-summary.c b/src/ostree/ot-builtin-summary.c
index c6319f15..ba8f379b 100644
--- a/src/ostree/ot-builtin-summary.c
+++ b/src/ostree/ot-builtin-summary.c
@@ -210,7 +210,7 @@ ostree_builtin_summary (int argc, char **argv, OstreeCommandInvocation *invocati
return FALSE;
}
}
- else if (opt_view)
+ else if (opt_view || opt_raw)
{
g_autoptr(GBytes) summary_data = NULL;