Merge lp://staging/~jamesodhunt/ubiquity/bug-944191 into lp://staging/ubiquity

Proposed by James Hunt
Status: Merged
Merged at revision: 5285
Proposed branch: lp://staging/~jamesodhunt/ubiquity/bug-944191
Merge into: lp://staging/ubiquity
Diff against target: 52 lines (+20/-2) (has conflicts)
2 files modified
debian/changelog (+10/-1)
scripts/install.py (+10/-1)
Text conflict in debian/changelog
To merge this branch: bzr merge lp://staging/~jamesodhunt/ubiquity/bug-944191
Reviewer Review Type Date Requested Status
Stéphane Graber (community) Approve
Colin Watson (community) Approve
Review via email: mp+98493@code.staging.launchpad.net

This proposal supersedes a proposal from 2012-03-20.

Description of the change

  * scripts/install.py: Ignore mkdir failure if directory does (now)
    exist to accommodate update-apt-cache running in parallel with
    copy_all() (LP: #944191).

(Updated with Colins feedback).

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote : Posted in a previous version of this proposal

The style in ubiquity is to check specifically for OSError, rather than for the more general EnvironmentError. Doing so is safe in this case; you aren't going to get anything else from os.mkdir.

I don't think you need to recheck os.path.isdir; simply having got EEXIST from os.mkdir implies that. I would just write this as 'if e.errno != errno.EEXIST'.

review: Needs Fixing
Revision history for this message
Colin Watson (cjwatson) wrote :

Looks good to me now, thanks!

review: Approve
Revision history for this message
Stéphane Graber (stgraber) wrote :

+1

review: Approve
Revision history for this message
Evan (ev) wrote : Posted in a previous version of this proposal

Make sure you have:

DEBCHANGE_RELEASE_HEURISTIC=changelog
DEBCHANGE_MULTIMAINT_MERGE=yes

in ~/.devscripts so that dch -U does the right thing.

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.

Subscribers

People subscribed via source and target branches

to status/vote changes: