Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opTko-0005XE-9r for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Oct 2022 12:18:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1opTkn-0006bh-5s for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Oct 2022 12:18:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opTkm-0006bY-TP for pgsql-bugs@lists.postgresql.org; Mon, 31 Oct 2022 12:18:56 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opTkk-0003Jy-7B for pgsql-bugs@lists.postgresql.org; Mon, 31 Oct 2022 12:18:55 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4N1Byg4PSNz3F20; Mon, 31 Oct 2022 13:18:51 +0100 (CET) Date: Mon, 31 Oct 2022 13:18:51 +0100 From: Christoph Berg To: mike.burgener@zg.ch, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17672: Wrong logic of Postgresql Resporitory Naming and mirroring incompatibility Message-ID: Mail-Followup-To: Christoph Berg , mike.burgener@zg.ch, pgsql-bugs@lists.postgresql.org References: <17672-0cdbd95934fa4600@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17672-0cdbd95934fa4600@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Dear Postgresql Community, while trying to mirror your repository to a > Canonical Landscape Server, i discovered that you don't follow the > guidelines of the Repository Format. Hi Mike, do you have any references to these guidelines? > I could not get landscape to mirror, as it quite strictly checks if the > repository is in the correct format and it internaly reuses the > $distribution name set earlier and globally as a variable value. Did you try setting distribution to focal-pgdg? Then everything should be consistent. > Maybe a quick on your repository to fullfill the Repository format standard > could be to link/bindmount > > https://apt.postgresql.org/pub/repos/apt/dists/focal/ to > https://apt.postgresql.org/pub/repos/apt/dists/focal-pgdg/ (stable) That doesn't work as the Release file mentions the name as well and apt will complain if it doesn't match. > Another special case i discovered on your repositories, you are using the > Postgres-Version name like > https://apt.postgresql.org/pub/repos/apt/dists/focal-pgdg/12/ > actually that's not really needed, as your package-names for each major > version seem to be different, you could just use > https://apt.postgresql.org/pub/repos/apt/dists/focal/postgresql and have all > versions like postgresql-12 postgresql-13 etc. in the same release file, as > thats selectable by apt later for example with "apt install postgresql-12" > "apt install postgresql-13" Please see https://apt.postgresql.org/pub/repos/apt/pool/README for an explanation. > My suggestion to have a proper repository setup which follows the guidelines > would be > > https://apt.postgresql.org/pub/repos/apt/dists/focal/postgresql That would require you to set distribution = focal/postgresql. Is that any better? Christoph