From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93F9D158009 for ; Wed, 21 Jun 2023 15:35:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99451E0901; Wed, 21 Jun 2023 15:35:16 +0000 (UTC) Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 62347E08D1 for ; Wed, 21 Jun 2023 15:35:16 +0000 (UTC) Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-55e42149cf2so2748162eaf.2 for ; Wed, 21 Jun 2023 08:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fi-uba-ar.20221208.gappssmtp.com; s=20221208; t=1687361715; x=1689953715; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=HIO7FMBOd/wpZN3jSyvj0eWQroHi7C6oyVdaZtI+ySc=; b=hAFt9+7Ckk7ZmMMF7ftfilqAOsNXjHQgfyFKbO9ojkMVY+NFyFMtVCgmSQNhzh3ssz ZRIrdaJzw/fTqq52u59XMJa2d037eaDy2Q446TUC4b21NoObTfdYvd6miUggvZttMbOI oYidwMskrJVJXODXGYH63x78Vb52OrqgEzXKVHFtTRDRqTCgs6osR6IRCNFVfmW953Jb 54gYIoZ1vMoHD7nNmlp8P87CrKVXRUCylzqUFmVHlIWd8b7W+XHfIhqoJb17aag3fa+g TKuEZlXL6IDAhLp+H3k06CNUyz95RE/vj4GbM3/J6QkmdY+yCc7HWz7hdH3svvPU88uj C97A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687361715; x=1689953715; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HIO7FMBOd/wpZN3jSyvj0eWQroHi7C6oyVdaZtI+ySc=; b=NsWCN5Lkt+6I13dNelpnHQTpz/bNTMn+ZgmEzpMVz9aloMGTfkMpH/mBZ0D/iq1bn8 gUxHgs6WYH0es6DVOfaIo/2tTavGN0cChfXfJLsTOmr4SWfoeXiuCREmkJEBXfTk8kwI 9EZ+ItiqREqgKyOsAWz4gycQUQZVj2QbSZ4uoqq2/QR63N5Hm/SQLGJrs27RYj//92we tvC+OPmA5LZgia3lNcxS7m76rZ1tFxLXrYV/01G8WJvOhuOYrksB1uhdMQLBbFv5xf+m jnuegEg8pGvIPdgPNZiPAR1KotZOXs/Se62jbaYyqk5XfqFrnorPtnKBqPpg5+R1nZMG 6tCQ== X-Gm-Message-State: AC+VfDxJXCijLu3ImRzAm1/HtgC/zhV+HC1lc3xUsP61vbJDlyCqzQEQ tNo/BGYBAj8PHgj1kSk+e1BIfdG0AG3BQthZODIsxLanpdd5H8IsbjQaQg== X-Google-Smtp-Source: ACHHUZ4FhSmi71GPCXL33lPL20/qBhrrBSKfphXRZGZ1bJMU8Ds2BceUFpHWoNRWPVgrZLMHjU5I2ygMhl+03hnhXHU= X-Received: by 2002:a4a:bc83:0:b0:55c:86b2:a315 with SMTP id m3-20020a4abc83000000b0055c86b2a315mr11703668oop.1.1687361715172; Wed, 21 Jun 2023 08:35:15 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <30d4b57b-734f-bd42-4427-15389256e80f@gentoo.org> <703cdee8-b322-6c49-be13-efd10426ea6b@gentoo.org> <06d53584-9c50-b819-cac5-abc17249c515@gentoo.org> <0b36b5e7-bb3f-2166-bb16-2fef8f35fde6@gentoo.org> <92ac9bbb-7c82-115d-fd70-298ef39ef5a7@gentoo.org> <64a1da86-899f-56d0-4051-828716e80eda@gentoo.org> In-Reply-To: From: TOMAS FABRIZIO ORSI Date: Wed, 21 Jun 2023 12:34:39 -0300 Message-ID: Subject: Re: [gentoo-dev] Eselect repository feature request To: gentoo-dev@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000a40acf05fea583d3" X-Archives-Salt: b7406189-ec6d-4657-bd61-cb1af50aec16 X-Archives-Hash: 8d1ea22f141cf807f303bdfeab17a091 --000000000000a40acf05fea583d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > $ sudo emerge --sync > Unavailable repository 'foo' referenced by masters entry in > '/var/db/repos/gentoo/metadata/layout.conf' Oh! I was not aware of this feature. I apologize. So, in theory, could '%s' be used to automatically enable the missing repository (if available in repositories.xml)? Thank you for you insight, Best regards, - Tomas Fabrizio Orsi El mi=C3=A9, 21 jun 2023 a las 12:07, Mike Gilbert () escribi=C3=B3: > On Wed, Jun 21, 2023 at 10:43=E2=80=AFAM TOMAS FABRIZIO ORSI > wrote: > >> > >> Sure, I think it could work. > > > > Great to hear. > > In that case I could try to give it a try and make a pull request to th= e > emerge --sync with a basic idea. > > Any tips? > > So emerge already emits a warning message when a repo is missing: > > > https://gitweb.gentoo.org/proj/portage.git/tree/lib/portage/repository/co= nfig.py?h=3Dportage-3.0.48.1#n1070 > > That looks something like this: > > $ sudo emerge --sync > Unavailable repository 'foo' referenced by masters entry in > '/var/db/repos/gentoo/metadata/layout.conf' > > --000000000000a40acf05fea583d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
$ sudo e= merge --sync
Unavailable repository 'foo' referenced by masters entry in
'/var/db/repos/gentoo/metadata/layout.conf'
Oh! I = was not aware of this feature. I apologize.
So, in theory, c= ould '%s' be used to automatically enable the missing repository
(if available in repositories.xml)?

Thank = you for you insight,

Best regards,
- Tomas Fabrizio Orsi

El mi=C3=A9, 21 jun 2023 a las 12:07, Mike Gilbert (<<= a href=3D"mailto:floppym@gentoo.org" target=3D"_blank">floppym@gentoo.org>) escribi=C3=B3:
On Wed, Jun 21, 2023 at 10:43=E2=80=AFAM TOMAS FABRIZIO ORSI <torsi@fi.uba.ar> w= rote:
>>
>> Sure, I think it could work.
>
> Great to hear.
> In that case I could try to give it a try and make a pull request to t= he emerge --sync with a basic idea.
> Any tips?

So emerge already emits a warning message when a repo is missing:

https://gitweb.gentoo.org/proj/portage.git/tree/lib/portage/reposito= ry/config.py?h=3Dportage-3.0.48.1#n1070

That looks something like this:

$ sudo emerge --sync
Unavailable repository 'foo' referenced by masters entry in
'/var/db/repos/gentoo/metadata/layout.conf'

--000000000000a40acf05fea583d3--