Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit a4c6886

Browse files
NeoTheThirdUniversalSuperBox
authored andcommitted
Run apt autoremove on upgrade
This is a good idea if you want to get rid of outdated dependencies, like packages that were removed from the meta-package.
1 parent 137156a commit a4c6886

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ubports-qa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def apt_upgrade():
8181
LOG.debug("Running 'apt upgrade'.")
8282
try:
8383
subprocess.run(["apt", "upgrade"], check=True)
84+
subprocess.run(["apt", "autoremove"], check=True)
8485
except subprocess.CalledProcessError:
8586
LOG.error("Failed to run 'apt upgrade'. See the output above for details.")
8687

0 commit comments

Comments
 (0)