From: "Slava Bacherikov" <slava@bacherikov.org.ua>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/libs/
Date: Thu, 7 Jun 2012 22:48:14 +0000 (UTC) [thread overview]
Message-ID: <1339098739.ff8c32e541a7c5482417ed909fb14ced2920a4c3.bacher09@gentoo> (raw)
commit: ff8c32e541a7c5482417ed909fb14ced2920a4c3
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org>
AuthorDate: Thu Jun 7 19:52:19 2012 +0000
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua>
CommitDate: Thu Jun 7 19:52:19 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=ff8c32e5
Add more docstrings to porttree.py
---
gpackages/libs/porttree.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/gpackages/libs/porttree.py b/gpackages/libs/porttree.py
index 8e8bb83..3bb6b6b 100644
--- a/gpackages/libs/porttree.py
+++ b/gpackages/libs/porttree.py
@@ -195,7 +195,7 @@ class PortTree(ToStrMixin):
yield ebuild
def __unicode__(self):
- return self.porttree
+ return self.name
@property
def porttree_path(self):
@@ -280,6 +280,7 @@ class Package(ToStrMixin):
@cached_property
def metadata(self):
+ "Return `MetaData` object that represent package metadata.xml file"
try:
return MetaData( self.metadata_path)
except IOError:
@@ -317,6 +318,7 @@ class Package(ToStrMixin):
@property
def description(self):
+ "Return first description in package metadata.xml"
if len(self.descriptions)>0:
return self.descriptions[0]
else:
@@ -324,6 +326,7 @@ class Package(ToStrMixin):
@cached_property
def changelog(self):
+ "Return ChangeLog content"
return file_get_content(self.changelog_path)
@@ -344,6 +347,7 @@ class Ebuild(ToStrMixin):
@property
def is_valid(self):
+ "Check if ebuild is valid"
try:
self.package_object.environment("EAPI")
except errors.GentoolkitFatalError:
@@ -357,6 +361,7 @@ class Ebuild(ToStrMixin):
return list(set(self.keywords_env.split()))
def iter_keywords(self):
+ "Iterate over keywords, yields Keyword object"
keywords = self.keywords
for keyword in keywords:
yield Keyword(keyword)
@@ -372,6 +377,7 @@ class Ebuild(ToStrMixin):
def iter_uses(self):
+ "Iterator over all uses, yiels `Use` object"
for use in self.get_uses_names():
yield Use(use)
@@ -388,10 +394,12 @@ class Ebuild(ToStrMixin):
@property
def version(self):
+ "Ebuild version"
return self.package_object.version
@property
def revision(self):
+ "Ebuild revision"
return self.package_object.revision
@property
next reply other threads:[~2012-06-07 22:48 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 22:48 Slava Bacherikov [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-20 23:23 [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/libs/ Slava Bacherikov
2012-06-20 23:23 Slava Bacherikov
2012-06-20 23:23 Slava Bacherikov
2012-06-18 21:26 Slava Bacherikov
2012-06-18 21:26 Slava Bacherikov
2012-06-18 21:26 Slava Bacherikov
2012-06-14 19:10 Slava Bacherikov
2012-06-12 18:34 Slava Bacherikov
2012-06-12 18:34 Slava Bacherikov
2012-06-10 17:51 Slava Bacherikov
2012-06-09 18:19 Slava Bacherikov
2012-06-09 18:19 Slava Bacherikov
2012-06-07 22:48 Slava Bacherikov
2012-06-07 22:48 Slava Bacherikov
2012-06-06 22:48 Slava Bacherikov
2012-06-05 21:46 Slava Bacherikov
2012-06-05 20:48 Slava Bacherikov
2012-06-05 15:49 Slava Bacherikov
2012-06-05 15:49 Slava Bacherikov
2012-06-04 22:18 Slava Bacherikov
2012-06-04 16:16 Slava Bacherikov
2012-06-04 16:16 Slava Bacherikov
2012-06-03 19:34 Slava Bacherikov
2012-06-03 16:19 Slava Bacherikov
2012-06-03 13:19 Slava Bacherikov
2012-06-03 13:19 Slava Bacherikov
2012-06-02 16:04 Slava Bacherikov
2012-06-01 21:28 Slava Bacherikov
2012-06-01 21:28 Slava Bacherikov
2012-05-31 15:28 Slava Bacherikov
2012-05-31 15:28 Slava Bacherikov
2012-05-29 21:34 Slava Bacherikov
2012-05-29 13:38 Slava Bacherikov
2012-05-28 17:00 Slava Bacherikov
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=1339098739.ff8c32e541a7c5482417ed909fb14ced2920a4c3.bacher09@gentoo \
--to=slava@bacherikov.org.ua \
--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