Merge lp:~jamesodhunt/ubiquity/bug-944191 into lp:ubiquity
Proposed by
James Hunt
on 2012-03-20
| Status: | Superseded | ||||
|---|---|---|---|---|---|
| Proposed branch: | lp:~jamesodhunt/ubiquity/bug-944191 | ||||
| Merge into: | lp:ubiquity | ||||
| Diff against target: |
43 lines (+18/-3) 2 files modified
debian/changelog (+8/-2) scripts/install.py (+10/-1) |
||||
| To merge this branch: | bzr merge lp:~jamesodhunt/ubiquity/bug-944191 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Colin Watson | 2012-03-20 | Needs Fixing on 2012-03-20 | |
|
Review via email:
|
|||
This proposal has been superseded by 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).
To post a comment you must log in.
lp:~jamesodhunt/ubiquity/bug-944191
updated
on 2012-03-20
- 5282. By James Hunt on 2012-03-20
-
scripts/install.py: Ignore mkdir failure if directory does (now)
exist to accommodate update-apt-cache running in parallel with
copy_all() (LP: #944191).


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'.