Gentoo Archives: gentoo-portage-dev

From: "W. Trevor King" <wking@×××××××.us>
To: gentoo-portage-dev@l.g.o
Cc: Rafael Goncalves Martins <rafaelmartins@g.o>, "W. Trevor King" <wking@×××××××.us>
Subject: [gentoo-portage-dev] [PATCH v3 0/4] Initial fetch() refactoring
Date: Mon, 20 Jan 2014 03:26:57
Message-Id: cover.1390187967.git.wking@tremily.us
In Reply to: [gentoo-portage-dev] [PATCH v2 0/3] Initial fetch() refactoring by "W. Trevor King"
1 Changes since v2:
2
3 * Use """<summary>""" for one-line docstrings.
4 * Terminate docstring summaries with periods.
5 * Mention 'netloc' in _expand_mirror docstring.
6 * Uppercase URI in docstrings.
7 * Add a 'key' variable to cut down on setting-name noise.
8 * Remove parens and line extensions (\) from % formatting.
9 * Use 'expanded_uris' instead of 'uris' for _expand_mirror return
10 value.
11 * Additional line wrapping to stay under 80 chars.
12 * New test_fetch.py test suite for the helper functions.
13 * New patch #4 that refactors _get_fetch_resume_size.
14
15 Not changed since v2:
16
17 * Default arguments for _get_uris [1], but I've added an explicit
18 defense in my commit message.
19 * Use of settings in _get_uris [2], but I've added an explicit defense
20 in my commit message.
21 * Streamlining settings extraction [2], which I'm kicking down the
22 road. I think Portage should just use ConfigParser for settings,
23 but that is clearly outside the scope of this series.
24
25 Cheers,
26 Trevor
27
28 [1]: http://thread.gmane.org/gmane.linux.gentoo.portage.devel/4002/focus=4041
29 [2]: http://thread.gmane.org/gmane.linux.gentoo.portage.devel/4002/focus=4042
30
31 W. Trevor King (4):
32 pym/portage/package/ebuild/fetch.py: Factor out
33 _get_checksum_failure_max_tries
34 pym/portage/package/ebuild/fetch.py: Factor out _get_fetch_resume_size
35 pym/portage/package/ebuild/fetch.py: Factor out _get_uris
36 pym/portage/package/ebuild/fetch.py: Flatten conditionals in
37 _get_fetch_resume_size
38
39 pym/portage/package/ebuild/fetch.py | 318 ++++++++++++++++++++-------------
40 pym/portage/tests/ebuild/test_fetch.py | 203 +++++++++++++++++++++
41 2 files changed, 392 insertions(+), 129 deletions(-)
42 create mode 100644 pym/portage/tests/ebuild/test_fetch.py
43
44 --
45 1.8.5.2.8.g0f6c0d1

Replies