aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-07-04 21:28:01 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-07-04 21:28:01 +0000
commit10ca67dd9935d21a59827ea307fe28dc71b82900 (patch)
tree69ef3b13e9796558cda48cf34c4a342a88b3ba52
parent49dd64c4e70790b3144182cce2581d61539e6fc8 (diff)
downloadpaludis-10ca67dd9935d21a59827ea307fe28dc71b82900.tar.gz
paludis-10ca67dd9935d21a59827ea307fe28dc71b82900.tar.xz
Make dosym create necessary directories if they don't exist. Changed to stay in line with changed portage behaviour.
-rw-r--r--ebuild/utils/dosym4
1 files changed, 4 insertions, 0 deletions
diff --git a/ebuild/utils/dosym b/ebuild/utils/dosym
index dffc44a..0bb29e5 100644
--- a/ebuild/utils/dosym
+++ b/ebuild/utils/dosym
@@ -31,4 +31,8 @@ if [[ ${#} -ne 2 ]]; then
exit 1
fi
+if [[ ! -d ${2%/*} ]]; then
+ dodir ${2%/*}
+fi
+
ln -snf "${1}" "${D}${2}"