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

Commit 8fe4a62

Browse files
mardyUniversalSuperBox
authored andcommitted
ubports-qa: run a full upgrade on install
The `apt upgrade` command never removes installed packages, meaning that if a package from the PPA conflicts with installed packages, it won't be installed or upgraded. The `apt full-upgrade` command, on the other hand, allows installing or upgrading all the packages from the PPA, even if that requires removing some of the installed packages.
1 parent 24dabc6 commit 8fe4a62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ubports-qa

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ def apt_update():
8282

8383

8484
def apt_upgrade():
85-
LOG.debug("Running 'apt upgrade'.")
85+
LOG.debug("Running 'apt full-upgrade'.")
8686
try:
87-
subprocess.run(["apt", "upgrade"], check=True)
87+
subprocess.run(["apt", "full-upgrade"], check=True)
8888
subprocess.run(["apt", "autoremove"], check=True)
8989
except subprocess.CalledProcessError:
90-
LOG.error("Failed to run 'apt upgrade'. See the output above for details.")
90+
LOG.error("Failed to run 'apt full-upgrade'. See the output above for details.")
9191

9292

9393
def get_list_file(branch):

0 commit comments

Comments
 (0)