diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-25 01:44:39 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-08 00:06:22 -0600 |
commit | cec98c63189b98cc854c6c379cd6925a495555f4 (patch) | |
tree | b62f2c1e96a55c40cc2dfd59c13aa8edc5a59509 /db-update | |
parent | 780c57ec14e7ccbf8695ccc159bbee49cf17e237 (diff) |
Backport simple changes from the lukeshu/xbs branch.
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -42,14 +42,22 @@ for repo in "${repos[@]}"; do if ! check_pkgfile "${pkg}"; then die "Package %s is not consistent with its meta data" "${repo}/${pkg##*/}" fi + if "${REQUIRE_SIGNATURE}" && ! pacman-key -v "${pkg}.sig" >/dev/null 2>&1; then + die "Package %s does not have a valid signature" "${repo}/${pkg##*/}" + fi + if ! check_pkgxbs "${pkg}" "${repo}"; then + die "Package %s is not consistent with %s" "${repo}/${pkg##*/}" "$(xbs name)" + fi if ! check_pkgrepos "${pkg}"; then die "Package %s already exists in another repository" "${repo}/${pkg##*/}" fi + if ! check_packager "${pkg}"; then + die "Package ${repo}/${pkg##*/} does not have a valid packager" + fi done - # This is fucking obnoxious - #if ! check_splitpkgs ${repo} "${pkgs[@]}"; then - # die "Missing split packages for %s" "${repo}" - #fi + if ! check_splitpkgs "${repo}" "${pkgs[@]}"; then + die "Missing split packages for %s" "${repo}" + fi else die "Could not read %s" "${STAGING}" fi |