代码拉取完成,页面将自动刷新
同步操作将从 yangshicheng/systemd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From b57a0605dd294c00ed34d7bad08a9c33f9810a2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Thu, 3 Mar 2022 18:56:06 +0100
Subject: [PATCH] portablectl: reorder if branches to match previous
conditional in the same function
One is a ternary op, the other an normal conditional, but they should still use
the same order of branches.
(cherry picked from commit 573e33de078956ded078653ef3f90f93469b4dbf)
(cherry picked from commit 7856dc310906cb8b09d27b7175b322129bd619b6)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/b57a0605dd294c00ed34d7bad08a9c33f9810a2d
---
src/portable/portablectl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c
index af5e78c998..827d7a7b4a 100644
--- a/src/portable/portablectl.c
+++ b/src/portable/portablectl.c
@@ -927,12 +927,13 @@ static int detach_image(int argc, char *argv[], void *userdata) {
if (r < 0)
return r;
- if (!strv_isempty(arg_extension_images)) {
+ if (strv_isempty(arg_extension_images))
+ r = sd_bus_message_append(m, "b", arg_runtime);
+ else {
uint64_t flags = arg_runtime ? PORTABLE_RUNTIME : 0;
r = sd_bus_message_append(m, "t", flags);
- } else
- r = sd_bus_message_append(m, "b", arg_runtime);
+ }
if (r < 0)
return bus_log_create_error(r);
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。