Local packages
Jesse Keating
jkeating at redhat.com
Thu Feb 7 16:12:49 UTC 2008
On Thu, 07 Feb 2008 08:36:23 -0700
Gary Thomas <gary at mlbassoc.com> 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:
[jkeating at lumos 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
--
All my bits are free, are yours?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20080207/e2bc7afa/attachment.sig>
More information about the Fedora-buildsys-list
mailing list