Bug #192341 - When the chflags command does not exit successfully,
authorZac Medico <zmedico@gentoo.org>
Wed, 26 Sep 2007 20:52:25 +0000 (20:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 26 Sep 2007 20:52:25 +0000 (20:52 -0000)
commit9016e31b0f17bb7c118edfcf60cf1342958a3fe7
tree0bf97abe089fb7659574771c94fa2a37ca699bd6
parente9156c77ede4e00eafd2171c8e89f2f0898cc77e
Bug #192341 - When the chflags command does not exit successfully,
try to generate an informative error. First, use stat or lstat to
try and generate an ENOENT error.  It the path exists, verify that
the chflags binary exists and raise CommandNotFound if necessary.
Finally, simply generate an EPERM OSError with the output of the
command since we're not sure exactly why it failed or what the
real errno was. (trunk r7834)

svn path=/main/branches/2.1.2/; revision=7836
pym/portage.py