]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
CI: update debian repos
authorIker Pedrosa <ipedrosa@redhat.com>
Fri, 14 Jul 2023 09:39:33 +0000 (11:39 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 14 Jul 2023 09:49:40 +0000 (11:49 +0200)
Latest debian version changed the location and format for the repos
file.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
share/containers/debian.dockerfile

index c58e42687e205f18fc67656d86613fb46f08d1f9..a9d5ba4bbb7bdfb688ce643b8487834c25ddeb59 100644 (file)
@@ -2,9 +2,8 @@ ARG OS_IMAGE="debian:latest"
 
 FROM "${OS_IMAGE}" AS build
 
-RUN cat /etc/apt/sources.list
-RUN sed -i '/deb-src/d' /etc/apt/sources.list \
-    && sed -i '/^deb /p;s/ /-src /' /etc/apt/sources.list
+RUN cat /etc/apt/sources.list.d/debian.sources
+RUN sed -i 's/Types: deb/Types: deb deb-src/g' /etc/apt/sources.list.d/debian.sources
 RUN export DEBIAN_PRIORITY=critical \
     && export DEBIAN_FRONTEND=noninteractive
 RUN apt-get update -y \