xbps-trigger: virtualpkg: ignore unexistent .conf files.

This commit is contained in:
Juan RP 2014-03-19 11:03:22 +01:00
parent 1706bdc2ac
commit fc404e0b44
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@ targets)
;; ;;
run) run)
for f in etc/xbps/virtualpkg.d/*.conf; do for f in etc/xbps/virtualpkg.d/*.conf; do
if [ ! -r "${f}" ]; then
continue
fi
file=$(basename $f) file=$(basename $f)
file=${file%.conf} file=${file%.conf}
if [ -f etc/xbps/virtualpkg.d/${file}.vpkg ]; then if [ -f etc/xbps/virtualpkg.d/${file}.vpkg ]; then

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers' # Template file for 'xbps-triggers'
pkgname=xbps-triggers pkgname=xbps-triggers
version=0.75 version=0.76
revision=1 revision=1
noarch=yes noarch=yes
bootstrap=yes bootstrap=yes