From 80f89d05435c338cbcc98bf0cea4e57a6ca74201 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 20 Jun 2023 03:21:45 -0400 Subject: [PATCH] graphics/povray: Fix doinst.sh. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- graphics/povray/doinst.sh | 8 ++++---- graphics/povray/povray.SlackBuild | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/graphics/povray/doinst.sh b/graphics/povray/doinst.sh index 55cd6f9e02..f374d1b79a 100644 --- a/graphics/povray/doinst.sh +++ b/graphics/povray/doinst.sh @@ -11,10 +11,10 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -if [ -e /etc/povray/@VERSION@/povray.conf.new ]; then - config /etc/povray/@VERSION@/povray.conf.new +if [ -e etc/povray/@VERSION@/povray.conf.new ]; then + config etc/povray/@VERSION@/povray.conf.new fi -if [ -e /etc/povray/@VERSION@/povray.ini.new ]; then - config /etc/povray/@VERSION@/povray.ini.new +if [ -e etc/povray/@VERSION@/povray.ini.new ]; then + config etc/povray/@VERSION@/povray.ini.new fi diff --git a/graphics/povray/povray.SlackBuild b/graphics/povray/povray.SlackBuild index 546e6e2b08..71cbf2e775 100644 --- a/graphics/povray/povray.SlackBuild +++ b/graphics/povray/povray.SlackBuild @@ -25,6 +25,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230620 bkw: currently, sbopkglint complains: +# Running test: 40-newconfig... +# --- doinst.sh doesn't handle .new config files: +# -rw-r--r-- 1 root root 4369 Jun 20 00:19 ./etc/povray/3.8/povray.conf.new +# -rw-r--r-- 1 root root 2494 Jun 20 00:19 ./etc/povray/3.8/povray.ini.new +# ...but ignore it, because the doinst.sh does handle the config files, +# it's just that sbopkglint isn't (yet?) smart enough to understand it. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=povray