1 |
Yes, I can break it up, but it will probably be 3 one line changes and |
2 |
one big 1000 line change. The 1000 line change is pretty |
3 |
straightforward. The only real code changes per se are removing any |
4 |
default logic (and placing it under the __main__ section). Let me see |
5 |
what I can do... |
6 |
|
7 |
I also messed around with pylint and pychecker today and they both |
8 |
caught some dead code (imports/parameters/variables not being used). |
9 |
I'd like to make this another patch as well. |
10 |
|
11 |
I noticed that this patch won't apply to the new portage (pre10 broke |
12 |
it). Should I be working against that or different code (from the cvs |
13 |
tree perhaps)? (I'd like to get a patch in that people can try before |
14 |
it becomes outdated). |
15 |
|
16 |
On 4/29/06, Alec Warner <antarus@g.o> wrote: |
17 |
> Is there any chance you can break this up? Mostly one patch for each * |
18 |
> below? OTherwise it's rather large ( 1000 lines ) and is difficult to |
19 |
> figure out what/when/where happened |
20 |
> |
21 |
> m h wrote: |
22 |
> > Upon further testing, I'm updating a line in the patch |
23 |
> > |
24 |
> > On 4/28/06, m h <sesquile@×××××.com> wrote: |
25 |
> > |
26 |
> >> Folks- |
27 |
> >> |
28 |
> >> I'm submitting a patch of a refactoring of the emerge code in |
29 |
> >> 2.1_pre9-r5. This patch adds no features per se. But I believe it |
30 |
> >> makes the code much more readable. This only addresses the |
31 |
> >> /usr/lib/portage/bin/emerge file. |
32 |
> >> |
33 |
> >> It does the following: |
34 |
> >> |
35 |
> >> * attempts to remove all global variables (with the exception of the |
36 |
> >> spinner animation) |
37 |
> >> * breaks up the heinous 900 lines of code at the bottom of the file into: |
38 |
> >> * a __main__ section that calls out to |
39 |
> >> * do_SOMETHING where something is (depclean, search, info, config, etc) |
40 |
> >> * removes any code that was dangling at the leftmost side of my editor |
41 |
> >> and puts it under the __main__ section |
42 |
> >> * removes an olddbapi variable that isn't used |
43 |
> >> |
44 |
> >> I've tested it with the sync, remove, search, update and it appears to |
45 |
> >> work. Any feedback is welcome. |
46 |
> >> |
47 |
> >> I hope that this gets in for a few reasons. I'm helping out with |
48 |
> >> doing some work on the PREFIX branch, having the code unstructured |
49 |
> >> makes it really hard to follow (hopefully it can get into trunk so I |
50 |
> >> don't need to patch prefix, everytime it's updated). One of my |
51 |
> >> coworkers just started adding some functionality to emerge (he'll send |
52 |
> >> his patches in soon), but this is really his first week using python, |
53 |
> >> and I don't want this to leave a bad taste in his mouth.... ;) |
54 |
> >> |
55 |
> >> -matt |
56 |
> >> |
57 |
> >> |
58 |
> >> |
59 |
> -- |
60 |
> gentoo-portage-dev@g.o mailing list |
61 |
> |
62 |
> |
63 |
|
64 |
-- |
65 |
gentoo-portage-dev@g.o mailing list |