Bug 37349 - опции strict и quiet перепутаны местами
Summary: опции strict и quiet перепутаны местами
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: xxhash (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-18 10:58 MSK by Sergey Ivanov
Modified: 2020-03-19 00:55 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ivanov 2019-10-18 10:58:24 MSK
В мануале и в хелпе написано:
q, --quiet
    Exit non-zero for improperly formatted checksum lines
--strict
    Don’t print OK for each successfully verified file
а по факту выполняется наоборот:
$ cat summ.xxh64
8bd__broken_hash__  test.txt
1192995662e0804d  test1.txt
69f55c449b3001a6  test2.txt

$ xxhsum --strict -c summ.xxh64; echo "exit status $?"
test1.txt: OK
test2.txt: OK
1 line are improperly formatted
exit status 1

$ xxhsum --quiet -c summ.xxh64; echo "exit status $?"
1 line are improperly formatted
exit status 0
Comment 1 Vitaly Lipatov 2020-03-19 00:55:51 MSK
Спасибо, исправлено в сборке

* Thu Mar 19 2020 Vitaly Lipatov <lav@altlinux.ru> 0.7.3-alt1
- new version 0.7.3 (with rpmrb script)

Коммит апстрима:
https://github.com/Cyan4973/xxHash/commit/c6ea1d21072e7be104c3efb7316b60f1a4203446