aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2019-04-05 13:50:21 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-04-05 13:53:56 +0000
commit7543522d5b6ed1936285d85b21639f008532d1fc (patch)
tree3daaf3f1585e0abd290fc8a65064a0bbfae481b2
parent4320baae5c27a2075edfd7ed0de8ce38bd304705 (diff)
downloadaports-7543522d5b6ed1936285d85b21639f008532d1fc.tar.gz
aports-7543522d5b6ed1936285d85b21639f008532d1fc.tar.bz2
aports-7543522d5b6ed1936285d85b21639f008532d1fc.tar.xz
main/dns-root-hints: minor APKBUILD improvements
Silence cleanup, prefix custom function with "_"
-rw-r--r--main/dns-root-hints/APKBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/dns-root-hints/APKBUILD b/main/dns-root-hints/APKBUILD
index 104742480c..5bd0baa186 100644
--- a/main/dns-root-hints/APKBUILD
+++ b/main/dns-root-hints/APKBUILD
@@ -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