Skip to content

Commit

Permalink
Update rhn_deb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto authored Jun 29, 2023
1 parent 9eefeb2 commit 88d7a5b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions python/uyuni/common/rhn_deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,13 @@ def __init__(self, stream):

try:
# Fill info about package
# this is a workaround for issue in python-debian
# https://www.mail-archive.com/pkg-python-debian-maint@alioth-lists.debian.net/msg00598.html
# after the issue is fixed, change the below with just
# debcontrol = self.deb.debcontrol()
try:
debcontrol = Deb822(self.get_file(self.deb.control, 'control'))
except debfile.DebError:
debcontrol = self.deb.debcontrol()
except debfile.DebError:
# this is a workaround for issue in python-debian
# https://www.mail-archive.com/pkg-python-debian-maint@alioth-lists.debian.net/msg00598.html
# after the issue is fixed
debcontrol = Deb822(self.get_file(self.deb.control, 'control'))


self.hdr = {
Expand Down

0 comments on commit 88d7a5b

Please sign in to comment.