Backport patch to fix F35 rebases through DBus
https://github.com/coreos/rpm-ostree/pull/3199
This commit is contained in:
parent
db68ae7e54
commit
e75ec62227
50
0001-move-ostree-parsing-to-daemon.patch
Normal file
50
0001-move-ostree-parsing-to-daemon.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
From d0d3e3f6e1e4710a49be2b159705e69fe8bafbc9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jonathan Lebon <jonathan@jlebon.com>
|
||||||
|
Date: Tue, 2 Nov 2021 12:50:16 -0400
|
||||||
|
Subject: [PATCH] Move `ostree://` parsing to daemon
|
||||||
|
|
||||||
|
Follow-up to df8315a262 (#3157).
|
||||||
|
|
||||||
|
GNOME Software uses the D-Bus API directly, not the CLI. So let's move
|
||||||
|
handling of `ostree://` there.
|
||||||
|
|
||||||
|
The test added in #3157 will verify that we're parsing it correctly.
|
||||||
|
|
||||||
|
Closes: #3192
|
||||||
|
---
|
||||||
|
src/app/rpmostree-builtin-rebase.cxx | 5 -----
|
||||||
|
src/daemon/rpmostreed-transaction-types.cxx | 5 +++++
|
||||||
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/app/rpmostree-builtin-rebase.cxx b/src/app/rpmostree-builtin-rebase.cxx
|
||||||
|
index 2b434b438..902b7dcf0 100644
|
||||||
|
--- a/src/app/rpmostree-builtin-rebase.cxx
|
||||||
|
+++ b/src/app/rpmostree-builtin-rebase.cxx
|
||||||
|
@@ -132,11 +132,6 @@ rpmostree_builtin_rebase (int argc,
|
||||||
|
}
|
||||||
|
(void)new_refspec_owned; /* Pacify static analysis */
|
||||||
|
|
||||||
|
- // We previously supported prefixing with ostree:// - so continue to parse this for now.
|
||||||
|
- // https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1463#note_1279157
|
||||||
|
- if (g_str_has_prefix (new_provided_refspec, "ostree://"))
|
||||||
|
- new_provided_refspec += strlen ("ostree://");
|
||||||
|
-
|
||||||
|
RpmOstreeRefspecType refspectype;
|
||||||
|
if (!rpmostree_refspec_classify (new_provided_refspec, &refspectype, error))
|
||||||
|
return FALSE;
|
||||||
|
diff --git a/src/daemon/rpmostreed-transaction-types.cxx b/src/daemon/rpmostreed-transaction-types.cxx
|
||||||
|
index a1cdf5ffa..dbe208a35 100644
|
||||||
|
--- a/src/daemon/rpmostreed-transaction-types.cxx
|
||||||
|
+++ b/src/daemon/rpmostreed-transaction-types.cxx
|
||||||
|
@@ -68,6 +68,11 @@ change_origin_refspec (GVariantDict *options,
|
||||||
|
gchar **out_new_refspec,
|
||||||
|
GError **error)
|
||||||
|
{
|
||||||
|
+ // We previously supported prefixing with ostree:// - so continue to parse this for now.
|
||||||
|
+ // https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1463#note_1279157
|
||||||
|
+ if (g_str_has_prefix (refspec, "ostree://"))
|
||||||
|
+ refspec += strlen ("ostree://");
|
||||||
|
+
|
||||||
|
RpmOstreeRefspecType refspectype;
|
||||||
|
if (!rpmostree_refspec_classify (refspec, &refspectype, error))
|
||||||
|
return FALSE;
|
@ -4,13 +4,15 @@
|
|||||||
Summary: Hybrid image/package system
|
Summary: Hybrid image/package system
|
||||||
Name: rpm-ostree
|
Name: rpm-ostree
|
||||||
Version: 2021.13
|
Version: 2021.13
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/coreos/rpm-ostree
|
URL: https://github.com/coreos/rpm-ostree
|
||||||
# This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot"
|
# This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot"
|
||||||
# in the upstream git. It also contains vendored Rust sources.
|
# in the upstream git. It also contains vendored Rust sources.
|
||||||
Source0: https://github.com/coreos/rpm-ostree/releases/download/v%{version}/rpm-ostree-%{version}.tar.xz
|
Source0: https://github.com/coreos/rpm-ostree/releases/download/v%{version}/rpm-ostree-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch01: 0001-move-ostree-parsing-to-daemon.patch
|
||||||
|
|
||||||
ExclusiveArch: %{rust_arches}
|
ExclusiveArch: %{rust_arches}
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -221,6 +223,10 @@ $PYTHON autofiles.py > files.devel \
|
|||||||
|
|
||||||
%files devel -f files.devel
|
%files devel -f files.devel
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 03 2021 Luca BRUNO <lucab@lucabruno.net> - 2021.13-2
|
||||||
|
- Backport patch to fix F35 rebases through DBus
|
||||||
|
https://github.com/coreos/rpm-ostree/pull/3199
|
||||||
|
|
||||||
* Tue Nov 02 2021 Luca BRUNO <lucab@lucabruno.net> - 2021.13-1
|
* Tue Nov 02 2021 Luca BRUNO <lucab@lucabruno.net> - 2021.13-1
|
||||||
- New upstream version
|
- New upstream version
|
||||||
https://github.com/coreos/rpm-ostree/releases/tag/v2021.13
|
https://github.com/coreos/rpm-ostree/releases/tag/v2021.13
|
||||||
|
Loading…
Reference in New Issue
Block a user