mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 02:10:13 +01:00
Fixed SID pin n=SID no upds from SID show only hl
On branch hl-521 Your branch is up to date with 'origin/hl-521'. Changes to be committed: modified: install.sh
This commit is contained in:
parent
ade0c43bba
commit
96992d911e
62
install.sh
62
install.sh
@ -111,102 +111,114 @@ ensure_sid_repo_and_pinning() {
|
|||||||
|
|
||||||
# Global low priority for sid
|
# Global low priority for sid
|
||||||
if [ ! -f /etc/apt/preferences.d/99-sid-low.pref ]; then
|
if [ ! -f /etc/apt/preferences.d/99-sid-low.pref ]; then
|
||||||
echo "${NOTE} Creating global low-priority pin for sid (Pin-Priority: 50)" | tee -a "$LOG"
|
echo "${NOTE} Creating global low-priority pin for sid (Pin-Priority: 50, using release n=sid)" | tee -a "$LOG"
|
||||||
sudo tee /etc/apt/preferences.d/99-sid-low.pref >/dev/null <<'EOF'
|
sudo tee /etc/apt/preferences.d/99-sid-low.pref >/dev/null <<'EOF'
|
||||||
Package: *
|
Package: *
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 50
|
Pin-Priority: 50
|
||||||
EOF
|
EOF
|
||||||
|
else
|
||||||
|
# Ensure existing pref file uses the correct selector (n=sid, not a=sid)
|
||||||
|
if grep -q 'release a=sid' /etc/apt/preferences.d/99-sid-low.pref 2>/dev/null; then
|
||||||
|
echo "${NOTE} Updating existing 99-sid-low.pref to use 'release n=sid'" | tee -a "$LOG"
|
||||||
|
sudo sed -i 's/release a=sid/release n=sid/g' /etc/apt/preferences.d/99-sid-low.pref
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prefer sid/testing for specific Hyprland-related libraries and tools
|
# Prefer sid for specific Hyprland-related libraries and tools
|
||||||
if [ ! -f /etc/apt/preferences.d/90-hyprland-sid.pref ]; then
|
if [ ! -f /etc/apt/preferences.d/90-hyprland-sid.pref ]; then
|
||||||
echo "${NOTE} Creating Hyprland-specific pinning for sid/testing libs" | tee -a "$LOG"
|
echo "${NOTE} Creating Hyprland-specific pinning for sid libs (Pin-Priority: 990, using release n=sid)" | tee -a "$LOG"
|
||||||
sudo tee /etc/apt/preferences.d/90-hyprland-sid.pref >/dev/null <<'EOF'
|
sudo tee /etc/apt/preferences.d/90-hyprland-sid.pref >/dev/null <<'EOF'
|
||||||
Package: wlroots
|
Package: wlroots
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libwlroots-*
|
Package: libwlroots-*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: wayland-protocols
|
Package: wayland-protocols
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: xwayland
|
Package: xwayland
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libdisplay-info*
|
Package: libdisplay-info*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libgulkan*
|
Package: libgulkan*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: vulkan-utility-libraries-dev
|
Package: vulkan-utility-libraries-dev
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: vulkan-validationlayers
|
Package: vulkan-validationlayers
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libre2-*
|
Package: libre2-*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libudis86*
|
Package: libudis86*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libxcb-errors*
|
Package: libxcb-errors*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libtomlplusplus*
|
Package: libtomlplusplus*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libhyprcursor*
|
Package: libhyprcursor*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libhyprlang*
|
Package: libhyprlang*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libhyprgraphics*
|
Package: libhyprgraphics*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: libhyprutils*
|
Package: libhyprutils*
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: hyprwayland-scanner
|
Package: hyprwayland-scanner
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: hyprland
|
Package: hyprland
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: hyprland-dev
|
Package: hyprland-dev
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: hyprland-backgrounds
|
Package: hyprland-backgrounds
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
|
|
||||||
Package: qml6-module-org-hyprland-style
|
Package: qml6-module-org-hyprland-style
|
||||||
Pin: release a=sid
|
Pin: release n=sid
|
||||||
Pin-Priority: 990
|
Pin-Priority: 990
|
||||||
EOF
|
EOF
|
||||||
|
else
|
||||||
|
# Ensure existing Hyprland pin file uses the correct selector (n=sid, not a=sid)
|
||||||
|
if grep -q 'release a=sid' /etc/apt/preferences.d/90-hyprland-sid.pref 2>/dev/null; then
|
||||||
|
echo "${NOTE} Updating existing 90-hyprland-sid.pref to use 'release n=sid'" | tee -a "$LOG"
|
||||||
|
sudo sed -i 's/release a=sid/release n=sid/g' /etc/apt/preferences.d/90-hyprland-sid.pref
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${NOTE} Updating APT package lists (including sid metadata)" | tee -a "$LOG"
|
echo "${NOTE} Updating APT package lists (including sid metadata)" | tee -a "$LOG"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user