repo-add: do not alter the database if only verifying signature
Fixes FS#48085. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
af5d69d59d
commit
f363cf7857
|
@ -798,6 +798,17 @@ fi
|
||||||
|
|
||||||
check_xdelta
|
check_xdelta
|
||||||
|
|
||||||
|
if (( VERIFY && ${#args[@]} == 1 )); then
|
||||||
|
for repo in "db" "files"; do
|
||||||
|
dbfile=${repodir}/$REPO_DB_PREFIX.$repo.$REPO_DB_SUFFIX
|
||||||
|
|
||||||
|
if [[ -f $dbfile ]]; then
|
||||||
|
verify_signature "$dbfile"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
prepare_repo_db
|
prepare_repo_db
|
||||||
|
|
||||||
for arg in "${args[@]:1}"; do
|
for arg in "${args[@]:1}"; do
|
||||||
|
|
Loading…
Reference in New Issue