aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-07-07 18:17:37 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-07-07 18:17:37 +0000
commit0b5a7ded3a4dccc7a11c438d43127b37767efc33 (patch)
tree82785fc7cc1872ffc4011f03f16c70d5c778fd78
parentf4fd6f0380557d0014357a53010f8b90054b895f (diff)
downloadpaludis-0b5a7ded3a4dccc7a11c438d43127b37767efc33.tar.gz
paludis-0b5a7ded3a4dccc7a11c438d43127b37767efc33.tar.xz
Add QA notice to dosym when it creates the target directory, and use dirname instead of bash substitutions.
-rw-r--r--ebuild/utils/dosym6
1 files changed, 4 insertions, 2 deletions
diff --git a/ebuild/utils/dosym b/ebuild/utils/dosym
index b489c05..b4a43be 100644
--- a/ebuild/utils/dosym
+++ b/ebuild/utils/dosym
@@ -22,6 +22,7 @@
# Place, Suite 330, Boston, MA 02111-1307 USA
export PATH="${PALUDIS_EBUILD_DIR:+${PALUDIS_EBUILD_DIR}/utils:}${PATH}"
+source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
if [[ ! -d ${D} ]]; then
echo "${0}: \${D} not valid; aborting" >&2
@@ -33,8 +34,9 @@ if [[ ${#} -ne 2 ]]; then
exit 1
fi
-if [[ ! -d ${2%/*} ]]; then
- dodir ${2%/*}
+if [[ ! -d $(dirname $2) ]]; then
+ ebuild_notice "qa" "$0: target directory $2 does not exist; creating. Please fix the ebuild to create it explicitly."
+ dodir $(dirname $2)
fi
ln -snf "${1}" "${D}${2}"