index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2016-02-21 19:06:37 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-02-26 15:18:44 +1000 |
commit | f363cf78575cc4c54dee5801274e55d07e0971b1 (patch) | |
tree | 0a5669b9cc3e15e6bdcda9a17020d2457573fc9c /scripts/repo-add.sh.in | |
parent | af5d69d59d2deb44bf21bb3f3d9587ec656bbc62 (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 11 |
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 |