Commit 7543522d authored by Leonardo Arena's avatar Leonardo Arena

main/dns-root-hints: minor APKBUILD improvements

Silence cleanup, prefix custom function with "_"
parent 4320baae
......@@ -3,7 +3,7 @@
# Maintainer: tcely <dnshints-root+aports@tcely.33mail.com>
pkgname=dns-root-hints
pkgver=2019031302
pkgrel=0
pkgrel=1
pkgdesc="The DNS root hint(s)"
url="https://www.internic.net/domain"
arch="noarch"
......@@ -62,7 +62,7 @@ snapshot() {
# commit if new version is found
if [ "$_drh_new_ver" != "$_drh_current_ver" ]; then
check_sig
_check_sig
mv ${_tmp}/named.root named.root
mv ${_tmp}/named.root.sig named.root.sig
git add named.root named.root.sig
......@@ -70,11 +70,11 @@ snapshot() {
fi
# cleanup
rm "${_tmp}"/* || true
rm "${_tmp}"/* 2>/dev/null || true
rmdir "${_tmp}"
}
check_sig() {
_check_sig() {
local GNUPGHOME="$builddir/.gpg"
install -d -m 0700 "$GNUPGHOME"
gpg --import < verisign-grs-nstld-key.asc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment