Gentoo Archives: gentoo-commits

From: "Paul Varner (fuzzyray)" <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoolkit r733 - in trunk/gentoolkit: man pym/gentoolkit
Date: Fri, 08 Jan 2010 21:46:05
Message-Id: E1NTMef-0006B9-9w@stork.gentoo.org
1 Author: fuzzyray
2 Date: 2010-01-08 21:46:01 +0000 (Fri, 08 Jan 2010)
3 New Revision: 733
4
5 Modified:
6 trunk/gentoolkit/man/equery.1
7 trunk/gentoolkit/pym/gentoolkit/dependencies.py
8 trunk/gentoolkit/pym/gentoolkit/package.py
9 Log:
10 Merge genscripts rev 146. This changes the unknown masking status in equery list to [??] instead of [XX]. Bug 273096
11
12 Modified: trunk/gentoolkit/man/equery.1
13 ===================================================================
14 --- trunk/gentoolkit/man/equery.1 2010-01-08 21:38:33 UTC (rev 732)
15 +++ trunk/gentoolkit/man/equery.1 2010-01-08 21:46:01 UTC (rev 733)
16 @@ -299,7 +299,7 @@
17 equery hasuse -pI perl
18 .EE
19 .br
20 -View all Gentoo packages that have the "perl" USE flag, excluding installed packages.
21 +View all Gentoo packages that have the "perl" USE flag, exluding installed packages.
22 .EX
23 .HP
24 USE="perl"; for PKG in $(equery -q hasuse $USE); do echo $PKG: $(equery -q uses $PKG |grep $USE); done
25 @@ -342,7 +342,7 @@
26 .EX
27 $ equery list binutils
28 * Searching for binutils ...
29 - [I--] [XX] sys-devel/binutils-2.18-r1:i686-pc-linux-gnu-2.18
30 + [I--] [??] sys-devel/binutils-2.18-r1:i686-pc-linux-gnu-2.18
31 [IP-] [ ~] sys-devel/binutils-2.19.1-r1:i686-pc-linux-gnu-2.19.1
32 .EE
33 .HP
34 @@ -350,9 +350,9 @@
35 .br
36 The first field shows the location and install status of the package. It consists of three letters in square brackets. \fBI\fP indicates the package is currently installed. \fBP\fP indicates the package is available in the Portage tree. \fBO\fP indicates the package is available in at least one overlay. \fB-\fP is a place holder and has no meaning. \fB[I-O]\fP would mean that the package is installed and available from an overlay, but not available from the Portage tree.
37 .HP
38 -Mask-status field (\fB[ ~M-XX]\fP):
39 +Mask-status field (\fB[ ~M-??]\fP):
40 .br
41 -The second field shows the mask status of the package. Empty brackets indicate that the package is unmasked. A \fB~\fP means the package is masked by keyword, e.g., you are running a stable system and the package is marked testing). \fBM\fP means hard masked, e.g., the package maintainer has determined the package is unfit for widespread usage. \fB-\fP means arch masked, e.g., you are running an amd64 system, but this package only works on x86. Lastly, \fBXX\fP only occurs when the location field is \fB[I--]\fP. Together, they indicate that the package was installed from the Portage tree or an overlay, but has since been removed from that tree; therefore \fBequery\fP can not determine a mask status for it.
42 +The second field shows the mask status of the package. Empty brackets indicate that the package is unmasked. A \fB~\fP means the package is masked by keyword, e.g., you are running a stable system and the package is marked testing). \fBM\fP means hard masked, e.g., the package maintainer has determined the package is unfit for widespread usage. \fB-\fP means arch masked, e.g., you are running an amd64 system, but this package only works on x86. Lastly, \fB??\fP only occurs when the location field is \fB[I--]\fP. Together, they indicate that the package was installed from the Portage tree or an overlay, but has since been removed from that tree; therefore \fBequery\fP can not determine a mask status for it.
43 .HP
44 Package name:
45 .br
46
47 Modified: trunk/gentoolkit/pym/gentoolkit/dependencies.py
48 ===================================================================
49 --- trunk/gentoolkit/pym/gentoolkit/dependencies.py 2010-01-08 21:38:33 UTC (rev 732)
50 +++ trunk/gentoolkit/pym/gentoolkit/dependencies.py 2010-01-08 21:46:01 UTC (rev 733)
51 @@ -1,4 +1,4 @@
52 -# Copyright(c) 2009-2010, Gentoo Foundation
53 +# Copyright(c) 2009, Gentoo Foundation
54 #
55 # Licensed under the GNU General Public License, v2
56 #
57 @@ -307,6 +307,12 @@
58 result.extend(sub_r)
59 use_conditional = None
60 continue
61 + # FIXME: This is a quick fix for bug #299260.
62 + # A better fix is to not discard blockers in the parser,
63 + # but to check for atom.blocker in whatever equery/depends
64 + # (in this case) and ignore them there.
65 + # TODO: Test to see how much a performance impact ignoring
66 + # blockers here rather than checking for atom.blocker has.
67 if tok[0] == '!':
68 # We're not interested in blockers
69 continue
70
71 Modified: trunk/gentoolkit/pym/gentoolkit/package.py
72 ===================================================================
73 --- trunk/gentoolkit/pym/gentoolkit/package.py 2010-01-08 21:38:33 UTC (rev 732)
74 +++ trunk/gentoolkit/pym/gentoolkit/package.py 2010-01-08 21:46:01 UTC (rev 733)
75 @@ -1,7 +1,7 @@
76 #!/usr/bin/python
77 #
78 # Copyright(c) 2004, Karl Trygve Kalleberg <karltk@g.o>
79 -# Copyright(c) 2004-2010, Gentoo Foundation
80 +# Copyright(c) 2004-2009, Gentoo Foundation
81 #
82 # Licensed under the GNU General Public License, v2
83 #
84 @@ -381,14 +381,14 @@
85
86 def __str__(self):
87 if self.do_format:
88 - maskmodes = [' ', ' ~', ' -', 'M ', 'M~', 'M-', 'XX']
89 + maskmodes = [' ', ' ~', ' -', 'M ', 'M~', 'M-', '??']
90 maskmode = maskmodes[self.format_mask_status()[0]]
91 return "[%(location)s] [%(mask)s] %(package)s:%(slot)s" % {
92 'location': self.location,
93 'mask': pp.keyword(
94 maskmode,
95 stable=not maskmode.strip(),
96 - hard_masked=set(('M', 'X', '-')).intersection(maskmode)
97 + hard_masked=set(('M', '?', '-')).intersection(maskmode)
98 ),
99 'package': pp.cpv(str(self.pkg.cpv)),
100 'slot': pp.slot(self.pkg.environment("SLOT"))
101 @@ -429,7 +429,7 @@
102
103 @rtype: tuple: (int, list)
104 @return: int = an index for this list:
105 - [" ", " ~", " -", "M ", "M~", "M-", "XX"]
106 + [" ", " ~", " -", "M ", "M~", "M-", "??"]
107 0 = not masked
108 1 = keyword masked
109 2 = arch masked