]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Use apt-get in favor of apt
authorJan Janssen <medhefgo@web.de>
Tue, 5 Sep 2023 10:02:05 +0000 (12:02 +0200)
committerJan Janssen <medhefgo@web.de>
Wed, 6 Sep 2023 09:01:53 +0000 (11:01 +0200)
Apparently, apt does not have a stable CLI interface and warns about it.

.github/workflows/build_test.sh

index aa4a25d7c5f7afa34b1278e4c286846615c50e9e..e01eb52ffe245fbeb45318282e20b5c582ced033 100755 (executable)
@@ -77,7 +77,7 @@ if [[ "$COMPILER" == clang ]]; then
     AR="llvm-ar-$COMPILER_VERSION"
 
     # Prefer the distro version if available
-    if ! apt install --dry-run "llvm-$COMPILER_VERSION" >/dev/null; then
+    if ! apt-get -y install --dry-run "llvm-$COMPILER_VERSION" >/dev/null; then
         # Latest LLVM stack deb packages provided by https://apt.llvm.org/
         # Following snippet was partly borrowed from https://apt.llvm.org/llvm.sh
         wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --yes --dearmor --output /usr/share/keyrings/apt-llvm-org.gpg
@@ -91,7 +91,7 @@ elif [[ "$COMPILER" == gcc ]]; then
     CXX="g++-$COMPILER_VERSION"
     AR="gcc-ar-$COMPILER_VERSION"
 
-    if ! apt install --dry-run "gcc-$COMPILER_VERSION" >/dev/null; then
+    if ! apt-get -y install --dry-run "gcc-$COMPILER_VERSION" >/dev/null; then
         # Latest gcc stack deb packages provided by
         # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
         add-apt-repository -y --no-update ppa:ubuntu-toolchain-r/test