From 18c9b018bfc16a3e4c64d937994d0c9de13873ad Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 5 Apr 2013 09:05:07 +0200 Subject: [PATCH] xbps-triggers: info-files: warn on missing files; modernize. --- srcpkgs/xbps-triggers/files/info-files | 11 +++++++---- srcpkgs/xbps-triggers/template | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/srcpkgs/xbps-triggers/files/info-files b/srcpkgs/xbps-triggers/files/info-files index 96e2f6d404..25917a0c3d 100755 --- a/srcpkgs/xbps-triggers/files/info-files +++ b/srcpkgs/xbps-triggers/files/info-files @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # # Registers or unregisters info files for a package. # @@ -14,8 +14,6 @@ PKGNAME="$3" VERSION="$4" UPDATE="$5" -export PATH="$PATH:/usr/local/bin" - installinfo=usr/bin/install-info infodir=usr/share/info @@ -34,7 +32,12 @@ run) HOSTARCH=$(uname -m) for f in ${info_files}; do - [ "$f" = "/usr/share/info/dir" ] && continue + if [ "$f" = "/usr/share/info/dir" ]; then + continue + elif [ ! -f ".$f" ]; then + echo "WARNING: $f does not exist! skipping..." + continue + fi case "$TARGET" in post-install) diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index 92a1310a83..b91092f75c 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.64 +version=0.65 revision=1 short_desc="The XBPS triggers for Void Linux" maintainer="Juan RP "