Strange behaviour for conflic file

James Antill james at fedoraproject.org
Mon Oct 13 14:54:23 UTC 2014


On Mon, 2014-10-13 at 13:39 +0300, Panu Matilainen wrote:
> On 10/13/2014 07:44 AM, jupiter wrote:
> > During the yum installation, either
> > /usr/local/hce_graphics/menu/hce.menu or /usr/local/hce_g1/menu/hce.menu
> > will be copied to /etc/xdg/menus/applications-merged/hce.menu depending
> > on whether the /etc/xdg/menus/applications-merged/hce.menu exists or not.
> >
> > I don't know how the yum or rpm checks duplication status, I'll imagine
> > that yum or rpm check the file content, access mode and ownership of the
> > file, if it is the same, yum or rpm won't copy to it, otherwise, yum or
> > rpm will generate an error of conflict. I've checked the files hce.menu
> > in both packages are identical, the yum installation shouldn't have
> > conflict error, but it did. Unless there are any other status that yum /
> > rpm checks?
> 
> The conflict is on /etc/xdg/menus/applications-merged/hce.menu file. 
> Since you're getting a conflict, it means THAT file is packaged in both, 
> and differs in one or more ways between the two.

 OP. Run this for both packages (can use -p foo.rpm for non-installed
packages) and check the data for the above file:

rpm -q --queryformat '%{NAME}-%{EPOCH}:%{VERSION}-%{RELEASE}.%{ARCH}:\n'\
'[%{FILEMODES:perms} %{FILEUSERNAME} %{FILEGROUPNAME} %{FILESIZES} %{FILENAMES}\
  Lang: %{FILELANGS}\
  Mtime: (%{FILEMTIMES}) %{FILEMTIMES:date}\
  Dev: %{FILERDEVS:hex}\
  %|FILEFLAGS?{Flags: (%{FILEFLAGS:hex}) %{FILEFLAGS:fflags}}:{}|\
  Digest: %{FILEMD5S}\
  %|FILELINKTOS?{Link to: %{FILELINKTOS}}:{}|\
  Verify: (%{FILEVERIFYFLAGS:hex}) %{FILEVERIFYFLAGS:vflags}\n]' $@



More information about the Yum-devel mailing list