Skip to content

Commit

Permalink
ci: mageia: correct update
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Aug 31, 2023
1 parent 6f7ac5b commit c94f8c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dorothy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
# dnf upgrade --assumeyes --refresh --best --allowerasing
# ^ disabled as always fails
# https://man.linuxreviews.org/man8/urpmi.8.html
urpmi.update -a
urpmi --auto bash curl
elif command -v dnf; then
# for fedora
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ emerge app-shells/bash net-misc/curl
Mageia:

```bash
urpmi --auto-update --auto
dnf check-update
urpmi.update -a
urpmi --auto bash curl
```

Expand Down
7 changes: 7 additions & 0 deletions commands/setup-linux
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ function setup_linux() (
local updates=(
'apk'
'apk'
'dnf'
'pacman'
'urpmi'
'yum'
'zypper'
)
Expand All @@ -154,6 +156,11 @@ function setup_linux() (
sudo-helper -- pacman --refresh --sync --noconfirm
}

function do_urpmi_update {
# https://wiki.mageia.org/en/URPMI#Basic_commands:_Install.2C_remove.2C_update
urpmi.update -a
}

function do_yum_update {
sudo-helper -- yum check-update -y || :
# ^ it always returns exit code 100
Expand Down

0 comments on commit c94f8c9

Please sign in to comment.