mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
We never ended up using this
Its very hard to properly ignore packages. So better we just double down on the stable repo and keeping them out of general rotation.
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
IGNORED_PACKAGES_FILE="$OMARCHY_PATH/install/packages.ignored"
|
|
||||||
|
|
||||||
if [[ -f $IGNORED_PACKAGES_FILE ]]; then
|
|
||||||
tr '\r\n' ',' <"$IGNORED_PACKAGES_FILE" | sed 's/,$//'
|
|
||||||
fi
|
|
||||||
@@ -2,20 +2,14 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Used in package emergencies if a bad package has been pushed and we can't revoke.
|
|
||||||
# Requires manually installing the good package using sudo pacman -U <url>
|
|
||||||
ignored_packages=$(omarchy-pkg-ignored)
|
|
||||||
|
|
||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
[[ -n $ignored_packages ]] && echo "sudo pacman -Syu --noconfirm --ignore \"$ignored_packages\""
|
sudo pacman -Syu --noconfirm
|
||||||
sudo pacman -Syu --noconfirm --ignore "$ignored_packages"
|
|
||||||
|
|
||||||
# Update AUR packages if any are installed
|
# Update AUR packages if any are installed
|
||||||
if pacman -Qem >/dev/null; then
|
if pacman -Qem >/dev/null; then
|
||||||
if omarchy-pkg-aur-accessible; then
|
if omarchy-pkg-aur-accessible; then
|
||||||
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
||||||
[[ -n $ignored_packages ]] && echo "yay -Sua --noconfirm --ignore \"$ignored_packages\""
|
yay -Sua --noconfirm
|
||||||
yay -Sua --noconfirm --ignore "$ignored_packages"
|
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
||||||
|
|||||||
Reference in New Issue
Block a user