aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-31 15:01:27 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-31 15:01:27 +0000
commit3065932a7d955ebb79b0045bd5990bcd2db43a66 (patch)
tree6fe67a6f70918c733ccbb2971676b2ad23ed7117
parentc7baa3db37e30c0dfeac0831652a96cb932be5df (diff)
downloadpaludis-3065932a7d955ebb79b0045bd5990bcd2db43a66.tar.gz
paludis-3065932a7d955ebb79b0045bd5990bcd2db43a66.tar.xz
Be a bit friendlier when upgrading from non-vdb_path supporting paludis
-rw-r--r--ebuild/builtin_unmerge.bash6
1 files changed, 5 insertions, 1 deletions
diff --git a/ebuild/builtin_unmerge.bash b/ebuild/builtin_unmerge.bash
index a7aa689..d3b8456 100644
--- a/ebuild/builtin_unmerge.bash
+++ b/ebuild/builtin_unmerge.bash
@@ -19,7 +19,11 @@
builtin_unmerge()
{
- local dbdir="$(vdb_path )/${CATEGORY}/${PF}" entry
+ local v=$(vdb_path)
+ 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}\")"
for v in CATEGORY CBUILD CHOST DEPEND DESCRIPTION EAPI \