Skip to content

Commit

Permalink
Merge pull request #205 from icy/release-v3.0.4
Browse files Browse the repository at this point in the history
v3.0.4: regenerated script and prepare new release
  • Loading branch information
icy authored Aug 3, 2021
2 parents 8ceae55 + 359aef0 commit ae29c3f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v3.0.4

* `lib/swupd`: Add tests and more operations (credit: @mondeja)
* `lib/conda/Qo`: added (credit: @anntzer)
* `lib/yum/Qe`: Added (credit: @mondeja)
* `yum` or `dnf`: Tests improvements (credit: @mondeja)

## v3.0.3

Minor bug fixes and features added.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ A long list of options and operations can be found from [`ArchLinux`'s wiki](htt
pkg_tools ~ * * * * * * * * ~ * * x * * ~ * * x
portage * * * * * * * * * * * * * * * * *
sun_tools * * * * * * *
swupd * * * * * * * * *
swupd * * * * * * * * * * * * *
tazpkg * * * * * * * * * * * * *
tlmgr * * * * * * * * * *
yum * * * * * * * * * * * * * * * * * * * * * * *
yum * * * * * * * * * * * * * * * * * * * * * * * *
zypper * * * * * * * * * * * * * * * * * * * * * * * * * *
```

Expand Down
42 changes: 38 additions & 4 deletions pacapt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Purpose: A wrapper for all Unix package managers
# License: Fair license (http://www.opensource.org/licenses/fair)
# Source : http://github.com/icy/pacapt/
# Version: 3.0.3
# Version: 3.0.4
# Authors: Anh K. Huynh et al.

# Copyright (C) 2010 - 2021 \
Expand Down Expand Up @@ -46,7 +46,7 @@

_print_pacapt_version() {
cat <<_EOF_
pacapt version '3.0.3'
pacapt version '3.0.4'
Copyright (C) 2010 - 2021 \\
| 10sr (10sr)
Expand Down Expand Up @@ -87,7 +87,7 @@ DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
_EOF_
}

export PACAPT_VERSION='3.0.3'
export PACAPT_VERSION='3.0.4'

_help() {
cat <<'EOF'
Expand Down Expand Up @@ -802,6 +802,10 @@ conda_Q() {
fi
}

conda_Qo() {
conda package --which "$@"
}

conda_R() {
conda remove "$@"
}
Expand Down Expand Up @@ -1847,6 +1851,14 @@ _swupd_init() {
:
}

swupd_Q() {
swupd bundle-list "$@"
}

swupd_Qi() {
swupd bundle-info "$@"
}

swupd_Qk() {
swupd verify "$@"
}
Expand All @@ -1867,6 +1879,14 @@ swupd_R() {
swupd bundle-remove "$@"
}

swupd_Sc() {
swupd clean "$@"
}

swupd_Scc() {
swupd clean --all "$@"
}

swupd_Suy() {
swupd update
}
Expand All @@ -1876,7 +1896,6 @@ swupd_Su() {
}

swupd_Sy() {
swupd search -i
swupd update
}

Expand Down Expand Up @@ -2086,6 +2105,15 @@ yum_Q() {
fi
}

yum_Qe() {
# in Centos8, repoquery takes 'reason' as format placeholder
centos_version="$($GREP -ohP '(?<=VERSION_ID=")([^"]+)(?=")' /etc/*elease)"
[ "$centos_version" -eq "8" ] && reason="reason" || reason="yumdb_info.reason"

repoquery --installed --qf "%{name} - %{$reason}" --all \
| $GREP 'user$' | cut -d' ' -f1
}

yum_Qi() {
yum info "$@"
}
Expand Down Expand Up @@ -2418,6 +2446,7 @@ _validate_operation() {
"cave_S") ;;
"cave_U") ;;
"conda_Q") ;;
"conda_Qo") ;;
"conda_R") ;;
"conda_S") ;;
"conda_Sc") ;;
Expand Down Expand Up @@ -2577,10 +2606,14 @@ _validate_operation() {
"sun_tools_Q") ;;
"sun_tools_R") ;;
"sun_tools_U") ;;
"swupd_Q") ;;
"swupd_Qi") ;;
"swupd_Qk") ;;
"swupd_Qo") ;;
"swupd_Qs") ;;
"swupd_R") ;;
"swupd_Sc") ;;
"swupd_Scc") ;;
"swupd_Suy") ;;
"swupd_Su") ;;
"swupd_Sy") ;;
Expand Down Expand Up @@ -2610,6 +2643,7 @@ _validate_operation() {
"tlmgr_Suy") ;;
"tlmgr_U") ;;
"yum_Q") ;;
"yum_Qe") ;;
"yum_Qi") ;;
"yum_Qs") ;;
"yum_Ql") ;;
Expand Down

0 comments on commit ae29c3f

Please sign in to comment.