Skip to content
Open
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
15 changes: 8 additions & 7 deletions usr/bin/cachyos-bugreport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ EOF
}

get_installed_packages() {
if [ -e /var/lib/pacman/sync/cachyos-v4.db ]; then
pacman -Ss | grep --color=never "^cachyos-v4/.*\[installed\]"
elif [ -e /var/lib/pacman/sync/cachyos-v3.db ]; then
pacman -Ss | grep --color=never "^cachyos-v3/.*\[installed\]"
elif [ -e /var/lib/pacman/sync/cachyos-znver4.db ]; then
pacman -Ss | grep --color=never "^cachyos-znver4/.*\[installed\]"
if pacman -Ss | awk '/\[installed\]/ {print $1,$2}'; then
:
else
echo "znver4, v4 or v3 repositories are not used"
echo "There was a problem querying repository packages."
fi
if pacman -Qm | awk '{$1 = "foreign/"$1; print $0}'; then
:
else
echo "There was a problem querying foreign packages."
fi
}

Expand Down