Metaswitch/ellis — pull request #8 by mirw (2013-06-04 19:55:15+00:00)
Title: [Reviewer: Andy] Clean install output

Andy, please can you review my fix to get a clean install of ellis? Previously, we sometimes got the following (benign) error.

```
Setting up clearwater-infrastructure (1.0-130507.080417) ...
mv: cannot move `/tmp/local_settings.py.3919' to `/usr/share/clearwater/ellis/env/lib/python2.7/site-packages/ellis-0.1-py2.7.egg/metaswitch/ellis/local_settings.py': No such file or directory
```

This was because we hadn't yet installed ellis, and so hadn't unpacked its egg, so the directory exist. The key point of my fix is to check that files (and hence their parent directories) exist before copying - if they don't, it's safe not to do the copy, because it will get fixed up later anyway. The rest of the change (moving to the for loop) is just to make the code tidier. A similar fix for crest will follow shortly.