Update external-winehq.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-28 21:20:46 +03:00 committed by GitHub
parent 02e35f91af
commit 65badd01e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,10 +31,11 @@ do
echo 'Package': * > /etc/apt/preferences.d/0-external-sync.conf echo 'Package': * > /etc/apt/preferences.d/0-external-sync.conf
echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-external-sync.conf echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-external-sync.conf
echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/0-external-sync.conf echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/0-external-sync.conf
if apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386 if apt-cache show $i
then then
true apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386
else else
apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386
echo $i >> ppp32.list echo $i >> ppp32.list
fi fi
rm -rf /etc/apt/preferences.d/0-external-sync.conf rm -rf /etc/apt/preferences.d/0-external-sync.conf
@ -57,10 +58,11 @@ do
echo 'Package': * > /etc/apt/preferences.d/0-external-sync.conf echo 'Package': * > /etc/apt/preferences.d/0-external-sync.conf
echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-external-sync.conf echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-external-sync.conf
echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/0-external-sync.conf echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/0-external-sync.conf
if apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64 if apt-cache show $i
then then
true apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64
else else
apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64
echo $i >> ppp64.list echo $i >> ppp64.list
fi fi
rm -rf /etc/apt/preferences.d/0-external-sync.conf rm -rf /etc/apt/preferences.d/0-external-sync.conf