summaryrefslogtreecommitdiffstats
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-08-18 13:46:15 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-08-18 13:46:15 +0200
commita2c4d5b00d4823941e17d6bdce7a0025112d1a0f (patch)
treec762597146d2fd05caa6c0f51233260fae93e11a /abuild.in
parent784f75ee9436d03421f7c71b1ceb36ea011a093b (diff)
downloadabuild-a2c4d5b00d4823941e17d6bdce7a0025112d1a0f.tar.bz2
abuild-a2c4d5b00d4823941e17d6bdce7a0025112d1a0f.tar.xz
abuild: check correct name for -doc
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index 7ac5447..6a6e7b6 100644
--- a/abuild.in
+++ b/abuild.in
@@ -647,12 +647,12 @@ postcheck() {
fi
# look for /usr/share/doc
if [ -e "$dir"/usr/share/doc ] \
- && ! is_doc_pkg; then
+ && ! is_doc_pkg "$name"; then
warning "Found /usr/share/doc but package name doesn't end with -doc"
fi
# look for /usr/share/man
if [ -e "$dir"/usr/share/man ]; then
- if ! is_doc_pkg; then
+ if ! is_doc_pkg "$name"; then
warning "Found /usr/share/man but package name doesn't end with -doc"
fi
# check for uncompressed man pages
@@ -966,7 +966,7 @@ is_dev_pkg() {
# returns true if this is the -doc package
is_doc_pkg() {
- test "${subpkgname%-doc}" != "$subpkgname"
+ test "${1%-doc}" != "$1"
}
# check that noarch is set if needed