use 'sqlite3', order output by filename

This commit is contained in:
Leonid Pliushch 2020-11-20 02:27:47 +02:00
parent 82fe76cee6
commit 1556d489f1
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ while getopts :hp:u option; do
done
if [ $# -ge 1 ]; then
echo "SELECT owned_file FROM 'whatprovides' WHERE package_name == '${1}';" | \
sqlite "${DB_PATH}" | awk "{ print \"${1}: \"\$0 }"
echo "SELECT owned_file FROM 'whatprovides' WHERE package_name == '${1}' ORDER BY owned_file;" | \
sqlite3 "${DB_PATH}" | awk "{ print \"${1}: \"\$0 }"
else
show_usage
exit 1