From 8fcb0e644afa706ef146138c54f287fdcbf88ab9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 2 Apr 2014 12:06:27 +0200 Subject: [PATCH] hooks/post-install/remove-libtool: make sure that PKGDESTDIR exists. --- common/hooks/post-install/02-remove-libtool-archives.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/post-install/02-remove-libtool-archives.sh b/common/hooks/post-install/02-remove-libtool-archives.sh index 099a18fddbe..bffe02c090e 100644 --- a/common/hooks/post-install/02-remove-libtool-archives.sh +++ b/common/hooks/post-install/02-remove-libtool-archives.sh @@ -1,7 +1,7 @@ # This hook removes libtool archives (.la) unless $keep_libtool_archives is set. hook() { - if [ -z "$keep_libtool_archives" ]; then + if [ -z "$keep_libtool_archives" -a -d "${PKGDESTDIR}" ]; then find ${PKGDESTDIR} -type f -name *.la -delete fi }