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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35C541382C5 for ; Thu, 4 Feb 2021 00:37:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 799DBE08E5; Thu, 4 Feb 2021 00:37:09 +0000 (UTC) Received: from mail02.rohde-schwarz.com (mail02.rohde-schwarz.com [80.246.32.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 56815E08E5 for ; Thu, 4 Feb 2021 00:37:09 +0000 (UTC) Received: from amu316.rsint.net (10.0.26.65) by mail-emea.rohde-schwarz.com (172.21.64.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.721.2; Thu, 4 Feb 2021 01:37:07 +0100 Received: from GMU419.rsint.net ([10.0.230.184]) by amu316.rsint.net (Totemo SMTP Server) with SMTP ID 75 for ; Thu, 4 Feb 2021 01:37:07 +0100 (CET) Received: from GMU020.rsint.net (10.0.2.70) by GMU419.rsint.net (10.0.230.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2106.2; Thu, 4 Feb 2021 01:37:07 +0100 Received: from GMU017.rsint.net (10.0.2.67) by GMU020.rsint.net (10.0.2.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Thu, 4 Feb 2021 01:37:06 +0100 Received: from GMU017.rsint.net ([fe80::310e:b15b:ca4:8119]) by GMU017.rsint.net ([fe80::310e:b15b:ca4:8119%12]) with mapi id 15.01.2106.006; Thu, 4 Feb 2021 01:37:07 +0100 From: Felix Bier To: "gentoo-catalyst@lists.gentoo.org" Subject: [gentoo-catalyst] [PATCH 3/5] Extend get_repo_name to handle squashed repos Thread-Topic: [PATCH 3/5] Extend get_repo_name to handle squashed repos /ur/ Thread-Index: AQHW+o3dMdgTVqRln0GUf0afVWy0Cw== Date: Thu, 4 Feb 2021 00:37:06 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.9.40] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-IQAV: YES X-RUS_SENSITIVITY: 10 X-GBS-PROC: Hy1tZutKzKytEgSh46guCms9v1z13sgCRbl4krBW2ZY2uQJHCo4DPnUiYpx2hxseYyf58zAginU+ajIahB+TjBIPEPECLps3rpWlXUqYeR4oYml/oOj3EP+lbs+Impo7 X-GBS-PROCJOB: ABko2MdZLVTgSIUN/ImUsWgOSVpbTEfY1IziB8gXpOksItUHG5ccn0k5/d0DsGiI X-Archives-Salt: 33ac45e3-2ec3-447b-896e-475784f482bb X-Archives-Hash: 8ce123075b66e16119bb39fb123105d8 VGhpcyBjb21taXQgZXh0ZW5kcyB0aGUgbWV0aG9kIGdldF9yZXBvX25hbWUgdG8gYWxzbyBoYW5k bGUNCnNxdWFzaGVkIHJlcG9zLiBUaGlzIGlzIGRvbmUgYnkgbW91bnRpbmcgdGhlIHNxdWFzaCBm aWxlIHRvDQphIHRlbXBvcmFyeSBkaXJlY3RvcnkgYW5kIHRoZW4gZXh0cmFjdGluZyB0aGUgcmVw b3NpdG9yeSBmcm9tDQp0aGF0IGRpcmVjdG9yeSB3aXR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