From: Paul Hänsch Date: Sat, 24 Aug 2019 18:59:51 +0000 (+0200) Subject: avoid repeating lines in sources.list X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=218e2ce73d4d5a9a0b9ef554be77c93a3b66895d;p=blast avoid repeating lines in sources.list --- diff --git a/Makefile b/Makefile index adec7d7..dc7dd52 100644 --- a/Makefile +++ b/Makefile @@ -194,7 +194,7 @@ ${SYSROOT}/etc/apt/trusted.gpg.d/: ${SYSROOT} cp keys/*.gpg "$@" _install: ${SYSROOT} _aptkeys _norecommends - printf '%s\n' "$${SOURCES}" >"$${SYSROOT}/etc/apt/sources.list" + printf '%s\n' "$${SOURCES}" |sort -u >"$${SYSROOT}/etc/apt/sources.list" -cp /etc/resolv.conf "$${SYSROOT}/etc/" -chroot "$${SYSROOT}" sh -c 'apt-mark showmanual |xargs apt-mark auto' -chroot "$${SYSROOT}" apt-get update