Skip to content

Commit

Permalink
rpm: correctly obsolete older rpm builds
Browse files Browse the repository at this point in the history
The prior change in #268 didn't completely obsolete older builds of
gvisor-tap-vsock, causing installation conflicts with the official
Fedora builds. This commit should correctly obsolete fedora packages.

Ref: https://cirrus-ci.com/task/5730166412935168

Note: To avoid nvr complexity, this commit only fixes the conflicts for
official Fedora builds. Any issues with the podman-next copr can be
fixed on a case-by-case basis unless an overwhelming amount of people
complain.

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Sep 13, 2023
1 parent f93fe26 commit 3e6ccdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpm/gvisor-tap-vsock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ dynamic port forwarding.
%package gvforwarder
Summary: %{desc_gvforwarder}
Provides: gvforwarder = %{epoch}:%{version}-%{release}
%if !%{defined copr_username}
Obsoletes: %{name} < 6:0.7.0-6
Recommends: %{name} = %{epoch}:%{version}-%{release}
%endif

%description gvforwarder
%{desc_gvforwarder}
Expand Down

0 comments on commit 3e6ccdf

Please sign in to comment.