Fix site_crashcollect.py find_packages_of().

The find_packages_of() function in server/site_crashcollect.py was
unnecessarily running 'find' in order to pass a full path to
'portageq owners.'  The 'portageq owners' command will work with
either a full path or file name, so now we just run that, piping it
into 'xargs stat' to determine which paths are executable files.
Also find_packages_of() will no longer raise exceptions.  (It did before
if portageq found no packages.)  This is simpler and seems to match better
the expectation of the calling code.

BUG=chromium:220828
TEST=a lot of manual tests to exercise all paths through the new code

Change-Id: I41fc5379fdd772d586de0cacad8ea23ddb9e0157
Reviewed-on: https://chromium-review.googlesource.com/219275
Trybot-Ready: Frank Henigman <[email protected]>
Reviewed-by: Mike Frysinger <[email protected]>
Commit-Queue: Frank Henigman <[email protected]>
Tested-by: Frank Henigman <[email protected]>
1 file changed