Skip to content

Commit 139ba93

Browse files
committed
pkgInfo: Fix AptPkgInfo's get_icon().
It was ok internally but didn't mirror the Flatpak class and many calls from mintinstall pass size as the first and only positional argument. This didn't much of a visible problem, since the size argument defaulted to a cached value.
1 parent 56b6128 commit 139ba93

File tree

1 file changed

+3
-3
lines changed
  • usr/lib/python3/dist-packages/mintcommon/installer

1 file changed

+3
-3
lines changed

usr/lib/python3/dist-packages/mintcommon/installer/pkgInfo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def __init__(self, pkg_hash=None, apt_pkg=None):
8686
self.name = apt_pkg.name
8787
self.display_name = self.get_display_name(apt_pkg)
8888
self.summary = self.get_summary(apt_pkg)
89-
self.get_icon(apt_pkg, 48)
90-
self.get_icon(apt_pkg, 64)
89+
self.get_icon(48, apt_pkg)
90+
self.get_icon(64, apt_pkg)
9191

9292
@classmethod
9393
def from_json(cls, json_data:dict):
@@ -179,7 +179,7 @@ def get_description(self, apt_pkg=None):
179179
def get_keywords(self):
180180
return ""
181181

182-
def get_icon(self, apt_pkg=None, size=64):
182+
def get_icon(self, size=64, apt_pkg=None):
183183
try:
184184
return self.icon[size]
185185
except:

0 commit comments

Comments
 (0)