Why the pipe to /dev/null?
I tried to work out if there was a way to only match /usr/share/doc/sssd or /usr/share/doc/sssd- but my bash glob fu isn't up to it. On a versioned docdir OS (like RHEL 6 and 7) this will show the contents of the doc dir for every installed sssd subpackage, which is typically something like 10 packages. The pipe to /dev/null just reduces the spam a bit. I'm not that fussed about keeping the pipe, the * is the important bit.
The more I look at this, the less happy I am. I think I was in a mentality of downstream patching, so trying to minimise the number of LoC I was changing. It seems a bit silly to raise the CalledProcessError just to catch it on the next line.
How about switching the call from ls /usr/... to file /usr/...?
Do you want to fix this, or would you like someone else to pick up this PR?
Looks like all the comments got addressed, no?
This PR was WIP, and doesn't work yet. I have a reworked patch set in my el6-support branch, but I need to work with merlinthp on finishing that up.
rebased
Patrick has taken care of all the fixes needed in master, except for the check_output call in the ipa helper code.
This looks good to me, thanks. :thumbsup:
This has been merged
Pull-Request has been closed by puiterwijk