public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/portagepm/, gentoopm/paludispm/
Date: Sat, 16 Jul 2011 22:55:04 +0000 (UTC)	[thread overview]
Message-ID: <9e26286fca5adb0583966b4a8f7778c2b451b96d.mgorny@gentoo> (raw)

commit:     9e26286fca5adb0583966b4a8f7778c2b451b96d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 22:53:48 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 22:53:48 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=9e26286f

Reuse new Atom APIs when transforming atoms.

---
 gentoopm/paludispm/atom.py |    6 +++---
 gentoopm/portagepm/atom.py |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gentoopm/paludispm/atom.py b/gentoopm/paludispm/atom.py
index 808e8ea..ccdd612 100644
--- a/gentoopm/paludispm/atom.py
+++ b/gentoopm/paludispm/atom.py
@@ -125,14 +125,14 @@ class PaludisAtom(PMAtom):
 	@property
 	def slotted(self):
 		assert(self.associated)
-		cp = str(self._atom.package)
-		slot = self._pkg.metadata['SLOT']
+		cp = str(self.key)
+		slot = self.slot or self._pkg.metadata['SLOT']
 		return PaludisAtom('%s:%s' % (cp, slot), self._env)
 
 	@property
 	def unversioned(self):
 		assert(self.associated)
-		return PaludisAtom(str(self._atom.package), self._env)
+		return PaludisAtom(str(self.key), self._env)
 
 	@property
 	def key(self):

diff --git a/gentoopm/portagepm/atom.py b/gentoopm/portagepm/atom.py
index 7342d89..0a77f76 100644
--- a/gentoopm/portagepm/atom.py
+++ b/gentoopm/portagepm/atom.py
@@ -96,14 +96,14 @@ class CompletePortageAtom(PMAtom):
 	@property
 	def slotted(self):
 		assert(self.associated)
-		cp = self._atom.cp
+		cp = str(self.key)
 		slot = self._pkg.metadata['SLOT']
 		return PortageAtom('%s:%s' % (cp, slot))
 
 	@property
 	def unversioned(self):
 		assert(self.associated)
-		return PortageAtom(self._atom.cp)
+		return PortageAtom(str(self.key))
 
 	@property
 	def key(self):



             reply	other threads:[~2011-07-16 22:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-16 22:55 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-13 10:54 [gentoo-commits] proj/gentoopm:master commit in: gentoopm/portagepm/, gentoopm/paludispm/ Michał Górny
2011-08-13  9:17 Michał Górny
2011-07-23  9:27 Michał Górny
2011-07-07 15:55 Michał Górny

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=9e26286fca5adb0583966b4a8f7778c2b451b96d.mgorny@gentoo \
    --to=mgorny@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