Jesse Keating wrote:
On Thu, 07 Feb 2008 08:36:23 -0700
Gary Thomas <[EMAIL PROTECTED]> wrote:

I'm trying to run pungi to create a munged/tailored repository,
using the official versions of Fedora & Updates.  Sadly, it
seems that the original package always seems to override the
one with my modifications, e.g.
   xorg-x11-server-1.3.0.0-40.fc8.src.rpm
is chosen, even when both it and
   xorg-x11-server-1.3.0.0-40_AM.fc8.src.rpm
are present.

Is there a way to set the version so that my package always
wins?  That way, I can use the 100% official repositories as
the starting point and only have my little mods.

When you modify the package, just add a .1 after the %{?dist}
declaration.

In your case, if you use rpmdev-vercomp you'll see that contrary to
what you'd think, xorg-x11-server-1.3.0.0-40.fc8 is actually rpm newer
than xorg-x11-server-1.3.0.0-40_AM.fc8:

$ rpmdev-vercmp 0:1.3.0.0-40.fc8 0:1.3.0.0-40_AM.fc8
0:1.3.0.0-40.fc8 is newer

But with a simple '.1' at the end of %{?dist} you get a newer package:

[EMAIL PROTECTED] scripts]$ rpmdev-vercmp 0:1.3.0.0-40.fc8 0:1.3.0.0-40.fc8.1
0:1.3.0.0-40.fc8.1 is newer

Cool, thanks!  'rpmdev-vercmp' seems to be a very nice tool
to know about.

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to