From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9681B1381F3 for ; Tue, 3 Sep 2013 13:15:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28D93E0EBB; Tue, 3 Sep 2013 13:15:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E79FE0EB1 for ; Tue, 3 Sep 2013 13:15:16 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93D3933E2B1 for ; Tue, 3 Sep 2013 13:15:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4346BE468F for ; Tue, 3 Sep 2013 13:15:14 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1378213674.049e688336b6f1880cb896e35bdde57f1262676f.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/remote/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/remote/repolist.py X-VCS-Directories: roverlay/remote/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 049e688336b6f1880cb896e35bdde57f1262676f X-VCS-Branch: master Date: Tue, 3 Sep 2013 13:15:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a61c7c5f-93fe-495f-9be4-10ab4fcfde01 X-Archives-Hash: 0ea54778ca5ed66b86aea325009696c9 commit: 049e688336b6f1880cb896e35bdde57f1262676f Author: André Erdmann mailerd de> AuthorDate: Tue Sep 3 13:07:54 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Tue Sep 3 13:07:54 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=049e6883 repolist: create_repo_identifier_map() returns a dict< repo_name->repo_id > --- roverlay/remote/repolist.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roverlay/remote/repolist.py b/roverlay/remote/repolist.py index f9b288a..b75d5e1 100644 --- a/roverlay/remote/repolist.py +++ b/roverlay/remote/repolist.py @@ -101,6 +101,10 @@ class RepoList ( object ): self.repos.extend ( gen_repos() ) # --- end of add_distdirs (...) --- + def create_repo_identifier_map ( self ): + return { repo.name: repo.get_identifier() for repo in self.repos } + # --- end of create_repo_identifier_map (...) --- + def load_file ( self, _file ): """Loads a repo config file and adds the repos to this RepoList.