Skip to content
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
23 changes: 0 additions & 23 deletions usr/lib/linuxmint/mintUpdate/checkAPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
with open("/usr/lib/linuxmint/mintUpdate/aliases") as alias_file:
for line in alias_file:
if not line.startswith('#'):
splitted = line.split("#####")

Check failure on line 39 in usr/lib/linuxmint/mintUpdate/checkAPT.py

View workflow job for this annotation

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

splitted ==> split
if len(splitted) == 4:

Check failure on line 40 in usr/lib/linuxmint/mintUpdate/checkAPT.py

View workflow job for this annotation

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

splitted ==> split
(alias_packages, alias_name, alias_short_description, alias_description) = splitted

Check failure on line 41 in usr/lib/linuxmint/mintUpdate/checkAPT.py

View workflow job for this annotation

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

splitted ==> split
alias_object = Alias(alias_name, alias_short_description, alias_description)
for alias_package in alias_packages.split(','):
alias_package = alias_package.strip()
Expand Down Expand Up @@ -309,29 +309,6 @@
description = html.unescape(description)
except:
print ("Unable to unescape '%s'" % description)
dlines = description.split("\n")
value = ""
num = 0
newline = False
for dline in dlines:
dline = dline.strip()
if len(dline) > 0:
if dline == ".":
value = "%s\n" % (value)
newline = True
else:
if (newline):
value = "%s%s" % (value, self.capitalize(dline))
else:
value = "%s %s" % (value, dline)
newline = False
num += 1
value = value.replace(" ", " ").strip()
# Capitalize the first letter
value = value[:1].upper() + value[1:]
# Add missing punctuation
if len(value) > 0 and value[-1] not in [".", "!", "?"]:
value = "%s." % value
if update.source_name not in NON_TRANSLATED_PKGS:
update.description += description
except Exception as e:
Expand Down
Loading