Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit757977b

Browse files
HollowMan6Conan-Kudo
authored andcommitted
Fix 'dnf.history' has no attribute 'open_history'
'open_history' has been deprecated since dnf 3.0.1 in PR 1043Signed-off-by: Hollow Man <hollowman@hollowman.ml>
1 parentec3cbde commit757977b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎python/dnfdaemon/server/__init__.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -699,12 +699,10 @@ def history_undo(self, tid):
699699
result= (False, ['Transaction not found'])
700700
else:
701701
old=old[0]
702-
history=dnf.history.open_history(self.base.history)
702+
mobj=dnf.db.history.MergedTransactionWrapper(old)
703703
try:
704704
# FIXME: Base.history_undo_operations is not public api
705-
#print(len(history.transaction_nevra_ops(old.tid)))
706-
self.base._history_undo_operations(
707-
history.transaction_nevra_ops(old.tid),old.tid)
705+
self.base._history_undo_operations(mobj,old.tid)
708706
#print(self.get_transaction())
709707
exceptdnf.exceptions.PackagesNotInstalledErroraserr:
710708
result= (False, ['An operation cannot be undone : %s'%

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp