diff options
author | Dan Nicholson <nicholson@endlessm.com> | 2017-11-09 02:15:11 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-09 17:15:59 +0000 |
commit | 374f7fc9733370f1814e6c97cb03a240bca08814 (patch) | |
tree | 4c8e342ab46fb88fb9f9c83888530cff0dfb2394 /src/ostree/ot-builtin-summary.c | |
parent | 9856ed38404b709877d94a4c3b7996be7a4fe84f (diff) | |
download | ostree-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.c | 2 |
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; |