Add helper function to fetch many files at once
Bug #450629 reported by
Free Ekanayaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Medium
|
Free Ekanayaka | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned | ||
Jaunty |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We currently have a fetch_async function for downloading a single URL. It would be nice to have one to retrieve a list of URLs, and have it callback once all of them have completed. In particular this feature will be used to fetch the files of the release-ugprade tool used for dist-upgrades.
The attached branch implements the proposed behaviour, and also add a helper function to parse the /etc/lsb-release, which is used in a couple of spots already, and will be used in the release-upgrade feature as well.
Related branches
Changed in landscape-client: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Free Ekanayaka (free.ekanayaka) |
milestone: | none → 1.4.0 |
tags: | added: review |
Changed in landscape-client: | |
milestone: | 1.4.0 → 1.4.1 |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
tags: | added: needs-testing |
tags: | removed: needs-testing |
tags: | added: 1.5-upgrade-client |
Changed in landscape-client (Ubuntu Lucid): | |
status: | New → Fix Committed |
Changed in landscape-client (Ubuntu Lucid): | |
status: | Fix Committed → Fix Released |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
tags: | removed: verification-needed |
To post a comment you must log in.
[1] parse_lsb_release: Please put the fd.close() in a 'finally:' statement.
[2] fetch_to_files: If the url ends with a '/', the filename will be an empty string:
>>> url = "X/"
>>> url.split("/")[-1]
''
[3] test_fetch_ many_async: s/retrives/ retrieves
Looks good! +1.