mirror of
https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
synced 2025-06-03 06:30:16 +00:00
Only enable sources for correct suite
When working with deb822 format sources files, only enable deb-src for the suite we are working with.
This commit is contained in:
parent
81668f56c9
commit
c942f6f4ae
@ -117,7 +117,12 @@ if [ ! -d "$PULSE_DIR" ]; then
|
||||
# Cater for DEB822 .sources files. These can appear alongside the
|
||||
# older format.
|
||||
for src in $(find /etc/apt/sources.list.d -maxdepth 1 -type f -name '*.sources'); do
|
||||
sudo sed -i 's/^Types: deb/Types: deb deb-src/' "$src"
|
||||
# If we can find a match for the codename in the file, enable
|
||||
# sources for all elements of the file. We assume that different
|
||||
# codenames will be assigned to different files
|
||||
if grep -iq "^suites:.* $codename" $src; then
|
||||
sudo sed -i 's/^Types: deb/Types: deb deb-src/' "$src"
|
||||
fi
|
||||
done
|
||||
|
||||
sudo apt-get update
|
||||
|
Loading…
Reference in New Issue
Block a user