Skip to content

Commit

Permalink
Fix #217 - Update Information crash dnfdragora
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Jan 9, 2024
1 parent d808904 commit abbe08b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if(POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif(POLICY CMP0048)

project(dnfdragora VERSION 2.1.5 LANGUAGES NONE)
project(dnfdragora VERSION 2.1.6 LANGUAGES NONE)
cmake_minimum_required(VERSION 3.4)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
Expand Down
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-01-09 v. 2.1.6
-------------------
- Fix issue #217 Update information' crash dnfdragora (thanks L-U-T-i)

2023-11-25 v. 2.1.5
-------------------
- Fixed Segfault error when there is no package description. Thanks to Petr Leliaev
Expand Down
6 changes: 5 additions & 1 deletion dnfdragora/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,10 @@ def _setInfoOnWidget(self, pkg) :
s += "<br>"
s += escape(pkg.updateinfo[0]['description']).replace("\n", "<br>")
s += "<br>"
s += '<b>%s</b> %s'%(pkg.updateinfo[0]['id'], escape(pkg.updateinfo[0]['updated'])).replace("\n", "<br>")
s += '<b>%s</b> %s'%(pkg.updateinfo[0]['id'], escape(pkg.updateinfo[0]['updated']).replace("\n", "<br>"))
else :
s+= missing
s += "<br>"

if pkg.repository:
s += "<br>"
Expand All @@ -1135,6 +1136,7 @@ def _setInfoOnWidget(self, pkg) :
s+= "<br>".join(pkg.requirements)
else:
s+= missing
s += "<br>"

t = 'files'
s += "<br>"
Expand All @@ -1145,6 +1147,7 @@ def _setInfoOnWidget(self, pkg) :
s+= "<br>".join(pkg.filelist)
else:
s+= missing
s += "<br>"

t = 'changelog'
s += "<br>"
Expand All @@ -1155,6 +1158,7 @@ def _setInfoOnWidget(self, pkg) :
s+= "<br>".join(pkg.changelog)
else:
s+= missing
s += "<br>"
self.info.setValue(s)
else:
logger.warning("_setInfoOnWidget without package")
Expand Down

0 comments on commit abbe08b

Please sign in to comment.