diff options
author | Juan RP <xtraeme@gmail.com> | 2015-04-05 16:41:01 +0000 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2015-04-05 16:41:01 +0000 |
commit | 2080de14145f4bbf07737fc712f883e0ecc0b01d (patch) | |
tree | ccacbbfe3abfbc160367a9bb20ac9fd70368c088 /common/hooks/pre-pkg/99-pkglint.sh | |
parent | b589d1fd4e3f153343a483b71c2bb0d36335c11d (diff) | |
download | void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.tar void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.tar.gz void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.tar.bz2 void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.tar.lz void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.tar.xz void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.tar.zst void-packages-2080de14145f4bbf07737fc712f883e0ecc0b01d.zip |
hooks/pkglint: check that all files in conf_files really exist.
Diffstat (limited to 'common/hooks/pre-pkg/99-pkglint.sh')
-rw-r--r-- | common/hooks/pre-pkg/99-pkglint.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh index 582686828d5..14a20c386f5 100644 --- a/common/hooks/pre-pkg/99-pkglint.sh +++ b/common/hooks/pre-pkg/99-pkglint.sh @@ -6,6 +6,7 @@ hook() { set +E + # Check for forbidden directories that are symlinks in void. for f in bin sbin lib lib32; do if [ -d ${PKGDESTDIR}/${f} ]; then msg_red "${pkgver}: /${f} directory is not allowed, use /usr/${f}.\n" @@ -18,6 +19,15 @@ hook() { error=1 fi done + + # Check that configuration files really exist. + for f in ${conf_files}; do + if [ ! -f ${PKGDESTDIR}/${f} ]; then + msg_red "${pkgver}: '$f' configuration file not in PKGDESTDIR!\n" + error=1 + fi + done + if [ $error -gt 0 ]; then msg_error "${pkgver}: cannot continue with installation!\n" fi |