[Ubuntu] do not wrap apt-fast in mock script (#9794)

This commit is contained in:
Mikhail Koliada
2024-05-07 10:41:49 +02:00
committed by GitHub
parent 79f002fc2a
commit fba89949a3
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ rm -f /usr/local/bin/invoke_tests
# remove apt mock
prefix=/usr/local/bin
for tool in apt apt-get apt-fast apt-key;do
for tool in apt apt-get apt-key;do
sudo rm -f $prefix/$tool
done

View File

@@ -2,12 +2,12 @@
################################################################################
## File: configure-apt-mock.sh
## Desc: A temporary workaround for https://github.com/Azure/azure-linux-extensions/issues/1238.
## Cleaned up during configure-cleanup.sh.
## Cleaned up during cleanup.sh.
################################################################################
prefix=/usr/local/bin
for real_tool in /usr/bin/apt /usr/bin/apt-get /usr/bin/apt-fast /usr/bin/apt-key; do
for real_tool in /usr/bin/apt /usr/bin/apt-get /usr/bin/apt-key; do
tool=$(basename $real_tool)
cat >$prefix/$tool <<EOT
#!/bin/sh