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

Do not automatically upgrade apt packages #1176

Closed
wants to merge 3 commits into from
Closed
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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ result = subprocess.check_output(["./deb-get", "help"], encoding="utf-8")
help = result.replace("Usage\n\n", "").rstrip()
cog.out(f"```\n{help}\n```")
]]] -->
```
```bash

deb-get {update [--repos-only] [--quiet] | upgrade | show <pkg list> | install <pkg list>
| reinstall <pkg list> | remove [--remove-repo] <pkg list>
@@ -95,7 +95,9 @@ update
upgrade
upgrade is used to install the newest versions of all packages currently
installed on the system.
installed on the system with option to evaluate with default y/n answer.
Answering no will upgrade only deb-get packages.
deb-get upgrade -y will act as unattended upgrades.
install
install is followed by one package (or a space-separated list of packages)
10 changes: 6 additions & 4 deletions deb-get
Original file line number Diff line number Diff line change
@@ -40,7 +40,9 @@ update
upgrade
upgrade is used to install the newest versions of all packages currently
installed on the system.
installed on the system with option to evaluate with default y/n answer.
Answering no will upgrade only deb-get packages.
deb-get upgrade -y will act as unattended upgrades.
install
install is followed by one package (or a space-separated list of packages)
@@ -265,7 +267,7 @@ function update_apt() {
}

function upgrade_apt() {
${ELEVATE} apt-get -q -o Dpkg::Progress-Fancy="1" -y upgrade
${ELEVATE} apt-get -q -o Dpkg::Progress-Fancy="1" upgrade "$1"
}

# Update only the added repo (during install action)
@@ -638,7 +640,7 @@ function update_debs() {

function upgrade_debs() {
local STATUS=""
upgrade_apt
upgrade_apt "$@"
for APP in "${INSTALLED_APPS[@]}"; do
validate_deb "${APPNAME2FULL[$APP]}"
if [ "${METHOD}" == "direct" ] || [ "${METHOD}" == "github" ]|| [ "${METHOD}" == "gitlab" ] || [ "${METHOD}" == "website" ]; then
@@ -1536,7 +1538,7 @@ function dg_action_update() {
function dg_action_upgrade() {
elevate_privs
create_cache_dir
upgrade_debs
upgrade_debs "$@"
}
function dg_action_fix-installed() {
if [ -n "${1}" ] && [ "${1}" != --old-apps ]; then