Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use auto resource management for license file #453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions usr/lib/linuxmint/mintinstall/mintinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,12 +1780,8 @@
dlg.set_program_name("mintinstall")
dlg.set_comments(_("Software Manager"))
try:
h = open('/usr/share/common-licenses/GPL', 'r')
s = h.readlines()
gpl = ""
for line in s:
gpl += line
h.close()
with open('/usr/share/common-licenses/GPL', 'r') as h:
gpl = h.read()
dlg.set_license(gpl)
except Exception as e:
print(e)
Expand Down Expand Up @@ -2124,7 +2120,7 @@
# then the app is uninstalled generally (usually they're -origin remotes, only added
# when a .flatpakref file is installed.) However, their addition/removal, purposely,
# will not trigger a rebuild of the cache, so we don't want to be caught showing an
# empty category as a reuslt.

Check failure on line 2123 in usr/lib/linuxmint/mintinstall/mintinstall.py

View workflow job for this annotation

GitHub Actions / build / build (mint22, linuxmintd/mint22-amd64, Mint 22, true) / Mint 22

reuslt ==> result
if remote_info.noenumerate:
continue

Expand Down
Loading