* remove from pgapt.conf; make -C repo; git commit
* cd /srv/apt && sudo -u aptuser git pull
* sudo -u aptuser reprepro --delete clearvanished
-* sudo -u aptuser rm -rf repo/dists/$DIST-pgdg*
+* `sudo -u aptuser rm -rf repo/dists/$DIST-pgdg*`
+
+## Adding a new architecture
+
+Same as adding a new distribution, but instead of copysrc/export, use `flood`:
+* for dist in ...; do sudo -u aptuser reprepro flood $dist-pgdg-testing $arch; done
+* in the database on repo host: `insert into architecture values ('$arch');`
. $dir/pgapt.conf
break
done
-chroot="source:${distribution:=sid}-${architecture:=amd64}-sbuild"
+chroot="source:${distribution:=sid}-${architecture:=$(dpkg --print-architecture)}-sbuild"
chroot_path="/home/chroot/$distribution-$architecture"
set_dist_vars $distribution $architecture
# configure dpkg and apt
test -e /etc/dpkg/dpkg.cfg.d/01unsafeio || echo force-unsafe-io | tee /etc/dpkg/dpkg.cfg.d/01unsafeio
+ test -e /etc/apt/apt.conf.d/20dpkg || echo 'DPkg::Options:: "--force-confnew"; DPkg::Options:: "--force-confmiss";' | tee /etc/apt/apt.conf.d/20dpkg
test -e /etc/apt/apt.conf.d/20norecommends || echo 'APT::Install-Recommends "false";' | tee /etc/apt/apt.conf.d/20norecommends
test -e /etc/apt/apt.conf.d/50i18n || echo 'Acquire::Languages { none; };' | tee /etc/apt/apt.conf.d/50i18n
test -e /etc/apt/apt.conf.d/60releaseinfo || echo 'Acquire::AllowReleaseInfoChange "true" { Suite "true"; };' | tee /etc/apt/apt.conf.d/60releaseinfo # don't complain when testing gets released as stable
rm -f /var/lib/apt/lists/*_Translation-*
- # run apt.postgresql.org.sh to install repository key (ca-certificates for https:// repo URL)
- if ! test -f /etc/apt/sources.list.d/pgdg.sources; then
- apt-get install -y ca-certificates postgresql-common
- /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -h$PGDG_MIRROR -st $distribution
- fi
-
# write sources lists
echo "deb $mirror $distribution main" > /etc/apt/sources.list
case $DISTRO in
rm -f /etc/apt/sources.list.d/backports.list*
fi
+ # run apt.postgresql.org.sh to install repository key (ca-certificates for https:// repo URL)
+ if ! test -f /etc/apt/sources.list.d/pgdg.sources; then
+ apt-get install -y ca-certificates postgresql-common gnupg
+ echo | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh # installed version might not know -h yet
+ apt-get install -y postgresql-common gnupg-
+ /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -h$PGDG_MIRROR -st $distribution
+ fi
+
# add a local extra repo
if [ "${LOCAL_REPO:-}" ]; then
keyring="/usr/share/keyrings/${LOCAL_REPO_NAME:-}-archive-keyring.asc"