debian/docker: Add source package handling for local apt repository

Tracked-On: #6688
Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
Helmut Buchsbaum
2022-05-07 09:02:05 +02:00
committed by acrnsi-robot
parent 8ecf0fe7e8
commit 32c3cd258f
2 changed files with 34 additions and 14 deletions

View File

@@ -24,8 +24,8 @@ fi
# copy all Debian packages in local APT repo and create local APT repository
export HOME=$(echo ~docker-build)
sudo -E -u docker-build /bin/bash -c "\
cd $1 && if ls -A /opt/apt/*.deb >/dev/null 2>&1; then cp /opt/apt/*.deb .; fi && \
cd $1 && if ls -A /opt/apt/*.deb >/dev/null 2>&1; then cp -a /opt/apt/. .; fi && \
apt-ftparchive packages . > Packages && \
cp /opt/apt/.Release.header Release && \
apt-ftparchive release . >> Release"
apt-ftparchive sources . > Sources 2>/dev/null && \
(cat /opt/apt/.Release.header && apt-ftparchive release .) > Release"