saltstack/salt — pull request #4832 by gldnspud (2013-05-05 03:11:55+00:00)
Title: Introduce `no_chown` option for `pip.install` and `virtualenv.managed` - #4805

When using `runas` in conjunction with a local-filesystem `requirements` file with these functions, `pip.install` will create a temporary copy of the requirements file, then change ownership of that file to the `runas` user.

The purpose of this is to avoid file permission errors when accessing the original requirements file. However, this breaks when that file has a "-r otherfile.txt" line.

In these cases, set `no_chown` to `True`. The original path to the requirements file will be kept, and other requirements files included from the top-level file will be correctly found.