Script to detect conflicting files in PATH within a yum repo (was Re: conflict between libotf and openmpi)

Nicolas Mailhot nicolas.mailhot at laposte.net
Thu Sep 17 06:13:28 UTC 2009


Le Jeu 17 septembre 2009 02:47, Jesse Keating a écrit :
> On Wed, 2009-09-16 at 20:08 -0400, Neal Becker wrote:
>> Why not report all conflicts, instead of only those on your PATH?
>
> Because these aren't file level conflicts, as in they can both exist on
> the filesystem at the same time and RPM won't care.  However they can
> lead to unexpected things due to PATH collision, if you type "foo" and
> there are multiple "foo"'s in your path, are you sure you know which one
> you'll get?

Well, for $PATH dirs you need to check the basename, for others you need
to check the full name (and hash, and perms). Both checks are valid  and
useful

-- 
Nicolas Mailhot




More information about the devel mailing list