1 Star 0 Fork 58

hanhuihui/dnf

forked from src-openEuler/dnf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
add-rpm-transaction-debuginfo.patch 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
hanhuihui 提交于 2022-02-28 09:58 . round self-developed patch
From 9f3dec73c99873747a05419187b1f36147c5f7d0 Mon Sep 17 00:00:00 2001
From: fengtao40 <fengtao40@huawei.com>
Date: Tue, 7 Jul 2020 20:29:48 +0800
Subject: [PATCH] huawei add rpm transaction debuginfo
---
dnf/base.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dnf/base.py b/dnf/base.py
index 0443443..81e5f6f 100644
--- a/dnf/base.py
+++ b/dnf/base.py
@@ -981,6 +981,7 @@ class Base(object):
except:
pass
dnf.util._sync_rpm_trans_with_swdb(self._ts, self._transaction)
+ logger.log(dnf.logging.DDEBUG, 'RPM transaction sync swdb over.')
if errors is None:
pass
@@ -1018,6 +1019,7 @@ class Base(object):
# keep install_set status because _verify_transaction will clean it
self._trans_install_set = bool(self._transaction.install_set)
+ logger.log(dnf.logging.DDEBUG, 'RPM transaction TsFlag is %s' % self._ts.isTsFlagSet(rpm.RPMTRANS_FLAG_TEST))
# sync up what just happened versus what is in the rpmdb
if not self._ts.isTsFlagSet(rpm.RPMTRANS_FLAG_TEST):
self._verify_transaction(cb.verify_tsi_package)
@@ -1040,6 +1042,7 @@ class Base(object):
count = 0
rpmdb_sack = dnf.sack.rpmdb_sack(self)
+ logger.log(dnf.logging.DDEBUG, 'verify transaction rpmdb_sack over.')
# mark group packages that are installed on the system as installed in the db
q = rpmdb_sack.query().installed()
--
2.18.4
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/han_hui_hui/dnf.git
git@gitee.com:han_hui_hui/dnf.git
han_hui_hui
dnf
dnf
master

搜索帮助