Merge lp://staging/~sinzui/launchpad/cache-country-mirrors-0 into lp://staging/launchpad

Proposed by Curtis Hovey
Status: Merged
Approved by: Brad Crittenden
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp://staging/~sinzui/launchpad/cache-country-mirrors-0
Merge into: lp://staging/launchpad
Diff against target: 44 lines (+9/-2)
2 files modified
lib/lp/registry/doc/cache-country-mirrors.txt (+6/-1)
scripts/cache-country-mirrors.py (+3/-1)
To merge this branch: bzr merge lp://staging/~sinzui/launchpad/cache-country-mirrors-0
Reviewer Review Type Date Requested Status
Brad Crittenden (community) code Approve
Review via email: mp+22457@code.staging.launchpad.net

Description of the change

This is my branch to make cache-country-mirrors work across filesystems.

    lp:~sinzui/launchpad/cache-country-mirrors-0
    Diff size: 21
    Launchpad bug: https://bugs.launchpad.net/bugs/550657
    Test command: ./bin/test -vv -t cache-country-mirrors.txt
    Pre-implementation: bac, edwin
    Target release: 10.03

make cache-country-mirrors work across filesystems
--------------------------------------------------

scripts/cache-country-mirrors.py breaks across file systems,
I'm guessing it's writing in /tmp?

Rules
-----

    * Switch from os.rename to shutils.move. From the api:
      If the destination is on our current filesystem, then simply use rename.
      Otherwise, copy src to the dst and then remove src.

QA
--

Run the script on the destination system and verify all is well.

Lint
----

Linting changed files:
  scripts/cache-country-mirrors.py

Test
----

The existing test is fine. We do not test filesystem corner cases like this.

Implementation
--------------

    * scripts/cache-country-mirrors.py
      * switched from os.rename to shutils.move

To post a comment you must log in.
Revision history for this message
Brad Crittenden (bac) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.