public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:prefix commit in: pym/portage/dbapi/
Date: Fri, 24 Mar 2017 19:09:51 +0000 (UTC)	[thread overview]
Message-ID: <1490373332.82ca805538e526e1e338c6bfae1a5b17a40f7b5e.grobian@gentoo> (raw)

commit:     82ca805538e526e1e338c6bfae1a5b17a40f7b5e
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 24 16:35:32 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Mar 24 16:35:32 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=82ca8055

vartree.py: use _contents.unmap_key when returning pkg

 pym/portage/dbapi/vartree.py | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 83fe5d3e1..9df69860f 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -2954,10 +2954,8 @@ class dblink(object):
 
 		if pkgfiles and destfile in pkgfiles:
 			if preserve_case is not None:
-				return preserve_case[destfile]
-			return destfile
-		#if self._contents.contains(destfile):
-		#	return self._contents.unmap_key(destfile)
+				return self._contents.contains(preserve_case[destfile])
+			return self._contents.unmap_key(destfile)
 		if pkgfiles:
 			basename = os_filename_arg.path.basename(destfile)
 			if self._contents_basenames is None:
@@ -3050,10 +3048,8 @@ class dblink(object):
 					x = os_filename_arg.path.join(p_path, basename)
 					if x in pkgfiles:
 						if preserve_case is not None:
-							return preserve_case[x]
-						return x
-					#if self._contents.contains(x):
-					#	return self._contents.unmap_key(x)
+							return self._contents.unmap_key(preserve_case[x])
+						return self._contents.unmap_key(x)
 
 		return False
 


             reply	other threads:[~2017-03-24 19:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24 19:09 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-25  9:12 [gentoo-commits] proj/portage:prefix commit in: pym/portage/dbapi/ Fabian Groffen
2017-03-24 19:38 Fabian Groffen
2017-03-24 19:09 Fabian Groffen
2015-06-09 20:07 Fabian Groffen
2015-06-09 18:30 Fabian Groffen
2013-09-18 18:34 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1490373332.82ca805538e526e1e338c6bfae1a5b17a40f7b5e.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox