From a2769e1a854d09a1ab9ff3b5115345564ccd6645 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:50:37 +0300 Subject: [PATCH] Update oneapi.sh --- oneapi.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/oneapi.sh b/oneapi.sh index efc6d7f..8d3bfe7 100644 --- a/oneapi.sh +++ b/oneapi.sh @@ -12,20 +12,16 @@ ssh ferreo@direct.pika-os.com 'aptly repo remove pikauwu-rocm libva2' chmod 755 ./ppp # Get oneAPI pool -mkdir -p ./manticoutput -cd ./manticoutput +mkdir -p ./manticoutput-tmp +cd ./manticoutput-tmp ../ppp https://ppa.pika-os.com/dists/pikauwu/rocm/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/dists/jammy/unified/binary-amd64/Packages https://repositories.intel.com/gpu/ubuntu/ ./ -cd ../ - -if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then +if [ $(ls ./ | wc -l) -lt 1 ]; then echo "Mantic repos are synced" exit 0 fi -mkdir -p ./manticoutput-real -cd ./manticoutput-real for i in ./*.deb do mkdir $i-tmp @@ -35,10 +31,14 @@ do sed -e s"#(=#(>=#"g -i $i-tmp/DEBIAN/control dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pika-pikauwu1-fixed.deb done + cd ../ +mkdir -p ./manticoutput/ +mv -v ./manticoutput-tmp/*-fixed.deb ./manticoutput/ + # send debs to server -rsync -azP ./manticoutput-real/ ferreo@direct.pika-os.com:/srv/www/incoming/ +rsync -azP ./manticoutput/ ferreo@direct.pika-os.com:/srv/www/incoming/ # Remove currently broken debs ssh ferreo@direct.pika-os.com 'rm -rfv /srv/www/incoming/intel-i915-dkms_*.deb'