packages: Fix kpm
This commit is contained in:
parent
aaabb9c3c0
commit
11a2adc8ed
7
neofetch
7
neofetch
|
@ -476,7 +476,6 @@ get_packages() {
|
||||||
# This solves issues with neofetch opening the "pacman" game.
|
# This solves issues with neofetch opening the "pacman" game.
|
||||||
local PATH=":${PATH}:"
|
local PATH=":${PATH}:"
|
||||||
local PATH="${PATH/':/usr/games:'/:}"
|
local PATH="${PATH/':/usr/games:'/:}"
|
||||||
local PATH="${PATH/':/opt/trinity/bin:'/:}"
|
|
||||||
local PATH="${PATH%:}"
|
local PATH="${PATH%:}"
|
||||||
local PATH="${PATH#:}"
|
local PATH="${PATH#:}"
|
||||||
|
|
||||||
|
@ -488,9 +487,6 @@ get_packages() {
|
||||||
type -p dpkg >/dev/null && \
|
type -p dpkg >/dev/null && \
|
||||||
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
||||||
|
|
||||||
type -p kpm >/dev/null && \
|
|
||||||
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
|
||||||
|
|
||||||
type -p pkgtool >/dev/null && \
|
type -p pkgtool >/dev/null && \
|
||||||
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
||||||
|
|
||||||
|
@ -547,6 +543,9 @@ get_packages() {
|
||||||
|
|
||||||
type -p alps >/dev/null && \
|
type -p alps >/dev/null && \
|
||||||
packages="$((packages+=$(alps showinstalled | wc -l)))"
|
packages="$((packages+=$(alps showinstalled | wc -l)))"
|
||||||
|
`
|
||||||
|
[[ "$distro" == "KSLinux" ]] && type -p kpm >/dev/null && \
|
||||||
|
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
||||||
|
|
||||||
if type -p cave >/dev/null; then
|
if type -p cave >/dev/null; then
|
||||||
package_dir=(/var/db/paludis/repositories/{cross-installed,installed}/*/data/*)
|
package_dir=(/var/db/paludis/repositories/{cross-installed,installed}/*/data/*)
|
||||||
|
|
Reference in New Issue