X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=inline;f=debian%2Fbin%2Finit-reprepro.sh;h=4014dc4b3a708b2efc6f3c1a8771ed6e622b7b2c;hb=0e1f3846c77e6b0ca5d9215b07f6e587cedd19d9;hp=f16a69b979140739e6e7e4ab491c1089da05d1ab;hpb=98c14ef3a50b0b44873866c76f8653b5c2fa6d64;p=config%2Fdotfiles.git diff --git a/debian/bin/init-reprepro.sh b/debian/bin/init-reprepro.sh index f16a69b..4014dc4 100755 --- a/debian/bin/init-reprepro.sh +++ b/debian/bin/init-reprepro.sh @@ -16,8 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -set -e +set -eu sources=/etc/apt/sources.list repo=/root/apt @@ -63,7 +63,7 @@ if test ! -d "$repo"; then mkdir -p "$repo/conf" mkdir -p "$repo/morgue" - arch=`dpkg --print-architecture` + arch="`dpkg --print-architecture` `dpkg --print-foreign-architectures`" cat >"$repo/conf/distributions" <&2 - ( cd "$repo" && reprepro check ) || true + ( cd "$repo" && reprepro export ) || true # Does nothing if the same key is imported multiple times. echo 'Adding key with apt-key.' >&2