summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/repo-add.sh.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index cab5e048..d62f9c4d 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -798,6 +798,17 @@ fi
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
for arg in "${args[@]:1}"; do