aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-06 00:09:34 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-06 00:09:34 +0000
commitb1134aa55138b5358f6b6d56d4d1e62d52014233 (patch)
tree0eed191abf0d1f8b06e9d6f180cabdcbaf6571cc
parent4309191b5e7445eb27f7f758d16cad557a9c68f6 (diff)
downloadpaludis-b1134aa55138b5358f6b6d56d4d1e62d52014233.tar.gz
paludis-b1134aa55138b5358f6b6d56d4d1e62d52014233.tar.xz
Be less sensitive to vdb_path detection failure
-rw-r--r--ebuild/builtin_unmerge.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/ebuild/builtin_unmerge.bash b/ebuild/builtin_unmerge.bash
index 96f0d5f..e358d8a 100644
--- a/ebuild/builtin_unmerge.bash
+++ b/ebuild/builtin_unmerge.bash
@@ -18,10 +18,11 @@
builtin_unmerge()
{
- local v=$(vdb_path)
+ local v=$(${PALUDIS_COMMAND} --configuration-variable installed location 2>/dev/null )
if [[ -z "${v}" ]] ; then
v=${ROOT}/var/db/pkg
fi
+
local dbdir="${v}/${CATEGORY}/${PF}" entry
[[ -d "${dbdir}" ]] || die "couldn't find pkg db directory (\"${dbdir}\")"