1 |
commit: a6a33725de7805677a1d86a5c6f9d2d18eb13915 |
2 |
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org> |
3 |
AuthorDate: Tue Jun 5 17:20:45 2012 +0000 |
4 |
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua> |
5 |
CommitDate: Tue Jun 5 17:20:45 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=a6a33725 |
7 |
|
8 |
Changes for PEP8 |
9 |
|
10 |
--- |
11 |
gpackages/libs/porttree.py | 27 ++++++++++++++++++--------- |
12 |
1 files changed, 18 insertions(+), 9 deletions(-) |
13 |
|
14 |
diff --git a/gpackages/libs/porttree.py b/gpackages/libs/porttree.py |
15 |
index f18387b..e4a3359 100644 |
16 |
--- a/gpackages/libs/porttree.py |
17 |
+++ b/gpackages/libs/porttree.py |
18 |
@@ -180,7 +180,8 @@ class Package(ToStrMixin): |
19 |
self._cache = {} |
20 |
|
21 |
def iter_ebuilds(self): |
22 |
- ebuilds = PORTDB.cp_list(self.package, mytree=self.category.porttree.porttree) |
23 |
+ ebuilds = PORTDB.cp_list(self.package, |
24 |
+ mytree = self.category.porttree.porttree) |
25 |
for ebuild in ebuilds: |
26 |
yield Ebuild(self ,ebuild) |
27 |
|
28 |
@@ -210,9 +211,12 @@ class Package(ToStrMixin): |
29 |
metadata_path = property(_file_path('metadata.xml')) |
30 |
|
31 |
#Hashes |
32 |
- manifest_sha1 = cached_property(_file_hash('manifest_path'), name = 'manifest_sha1') |
33 |
- changelog_sha1 = cached_property(_file_hash('changelog_path'), name = 'changelog_sha1') |
34 |
- metadata_sha1 = cached_property(_file_hash('metadata_path'), name = 'metadata_sha1') |
35 |
+ manifest_sha1 = cached_property(_file_hash('manifest_path'), |
36 |
+ name = 'manifest_sha1') |
37 |
+ changelog_sha1 = cached_property(_file_hash('changelog_path'), |
38 |
+ name = 'changelog_sha1') |
39 |
+ metadata_sha1 = cached_property(_file_hash('metadata_path'), |
40 |
+ name = 'metadata_sha1') |
41 |
# Modify times |
42 |
manifest_mtime = property(_file_mtime("manifest_path")) |
43 |
changelog_mtime = property(_file_mtime("changelog_path")) |
44 |
@@ -290,11 +294,16 @@ class Ebuild(ToStrMixin): |
45 |
"Full path to ebuild" |
46 |
return self.package_object.ebuild_path() |
47 |
|
48 |
- homepage_val = cached_property(_ebuild_environment('HOMEPAGE'), name = 'homepage_val') |
49 |
- license = cached_property(_ebuild_environment('LICENSE'), name = 'license') |
50 |
- description = cached_property(_ebuild_environment('DESCRIPTION'), name = 'description') |
51 |
- eapi = cached_property(_ebuild_environment('EAPI'), name = 'eapi') |
52 |
- slot = cached_property(_ebuild_environment('SLOT'), name = 'slot') |
53 |
+ homepage_val = cached_property(_ebuild_environment('HOMEPAGE'), |
54 |
+ name = 'homepage_val') |
55 |
+ license = cached_property(_ebuild_environment('LICENSE'), |
56 |
+ name = 'license') |
57 |
+ description = cached_property(_ebuild_environment('DESCRIPTION'), |
58 |
+ name = 'description') |
59 |
+ eapi = cached_property(_ebuild_environment('EAPI'), |
60 |
+ name = 'eapi') |
61 |
+ slot = cached_property(_ebuild_environment('SLOT'), |
62 |
+ name = 'slot') |
63 |
|
64 |
@cached_property |
65 |
def homepages(self): |