1 |
On Fri, 07 Sep 2012 23:14:05 +0200, Michael Hampicke wrote: |
2 |
|
3 |
> >> genlop -ul | grep 'sys-devel/gcc-[0-9]' |
4 |
> > |
5 |
> > And this week's prize for unnecessary use of pipes and grep goes to... |
6 |
> > |
7 |
> > genlop -u sys-devel/gcc |
8 |
|
9 |
> Nope, we not only need the time when gcc was unmerged (-u), but also |
10 |
> when it was merged (-l). When there's little time difference between |
11 |
> merge and unmerge we can assume, that portage auto-cleaned the old |
12 |
> version of gcc. If you combine -u and -l you need to grep (to be exact |
13 |
> sys-devel/gcc-[0-9], because of sys-devel/gcc-config and |
14 |
> sys-devel/gcc-apple). |
15 |
|
16 |
genlop, unlike qlop, does exact matching by default, so gcc mtches only |
17 |
gcc, not gcc-config (use -s if you want that). When you give a package |
18 |
name all merges are shown by default (-l is to show the full |
19 |
history), so the command I gave does what you want, like this |
20 |
|
21 |
Thu Jun 21 01:45:05 2012 <<< sys-devel/gcc-4.5.3-r2 |
22 |
Thu Jun 21 01:45:33 2012 >>> sys-devel/gcc-4.5.3-r2 |
23 |
Mon Jul 16 10:30:01 2012 <<< sys-devel/gcc-4.5.3-r2 |
24 |
Mon Jul 16 10:30:32 2012 >>> sys-devel/gcc-4.5.4 |
25 |
Thu Sep 6 11:24:27 2012 <<< sys-devel/gcc-4.6.3 |
26 |
Thu Sep 6 11:24:45 2012 >>> sys-devel/gcc-4.6.3 |
27 |
Thu Sep 6 11:26:15 2012 <<< sys-devel/gcc-4.5.4 |
28 |
Thu Sep 6 11:26:43 2012 >>> sys-devel/gcc-4.5.4 |
29 |
|
30 |
Except it is coloured by default when outputting to a terminal, merges in |
31 |
green, unmerges in red. Using -l and then grep is saying "show me |
32 |
everything, oh no, cut out anything that's not gcc" rather than "show me |
33 |
all gcc merges and unmerges". |
34 |
|
35 |
|
36 |
-- |
37 |
Neil Bothwick |
38 |
|
39 |
There's no place like http://www.home.com |