try a more solid way of guessing future dependencies

This commit is contained in:
kjeld Schouten-Lebbing
2021-09-06 00:50:40 +02:00
parent 8213c89641
commit a97732983f
+1 -1
View File
@@ -80,7 +80,7 @@ RUN --mount=type=bind,from=builder,source=/buildtmp/vendor/output,target=/build
mkdir /usr/share/doc/sogo && \
touch /usr/share/doc/sogo/empty.sh && \
cd /build && \
apt-get -y install $(apt-cache depends sogo | sed 's/<[^>]*>//g' | awk '$1~/Depends/{printf $2" "}') && \
(echo "$(dpkg-deb -I _sogo_${VERSION}_amd64.deb | grep -E "Depends" | tr -d "|," | sed "s/([^)]*)/()/g" | tr -d "()" | tr " " "\n" | grep -Ev "Depends|Recommends|Suggests|Pre\-Depends|sogo|sope" | xargs)" | xargs -n 1 apt-get install -y || true) && \
apt install -y ./*.deb && \
apt-get install -f && \
apt-get clean && \