mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-18 20:47:01 +00:00
abuild: check correct name for -doc
This commit is contained in:
parent
784f75ee94
commit
a2c4d5b00d
@ -647,12 +647,12 @@ postcheck() {
|
|||||||
fi
|
fi
|
||||||
# look for /usr/share/doc
|
# look for /usr/share/doc
|
||||||
if [ -e "$dir"/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"
|
warning "Found /usr/share/doc but package name doesn't end with -doc"
|
||||||
fi
|
fi
|
||||||
# look for /usr/share/man
|
# look for /usr/share/man
|
||||||
if [ -e "$dir"/usr/share/man ]; then
|
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"
|
warning "Found /usr/share/man but package name doesn't end with -doc"
|
||||||
fi
|
fi
|
||||||
# check for uncompressed man pages
|
# check for uncompressed man pages
|
||||||
@ -966,7 +966,7 @@ is_dev_pkg() {
|
|||||||
|
|
||||||
# returns true if this is the -doc package
|
# returns true if this is the -doc package
|
||||||
is_doc_pkg() {
|
is_doc_pkg() {
|
||||||
test "${subpkgname%-doc}" != "$subpkgname"
|
test "${1%-doc}" != "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# check that noarch is set if needed
|
# check that noarch is set if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user