bin/summary: Fix --raw option
authorDan Nicholson <nicholson@endlessm.com>
Thu, 9 Nov 2017 02:15:11 +0000 (02:15 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 9 Nov 2017 17:15:59 +0000 (17:15 +0000)
commit374f7fc9733370f1814e6c97cb03a240bca08814
tree4c8e342ab46fb88fb9f9c83888530cff0dfb2394
parent9856ed38404b709877d94a4c3b7996be7a4fe84f
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
src/ostree/ot-builtin-summary.c
tests/test-summary-view.sh