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 DF6871381F3 for ; Sun, 23 Jun 2013 00:44:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE750E09F0; Sun, 23 Jun 2013 00:44:25 +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 41998E09EC for ; Sun, 23 Jun 2013 00:44:25 +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 2862F33E491 for ; Sun, 23 Jun 2013 00:44:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7C10AE5464 for ; Sun, 23 Jun 2013 00:44:21 +0000 (UTC) From: "Jauhien Piatlicki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jauhien Piatlicki" Message-ID: <1371941862.069fc871e5e00e8f4bff041f5b45a95fdf1cc9c4.jauhien@gentoo> Subject: [gentoo-commits] proj/g-sorcery:master commit in: g_sorcery/ X-VCS-Repository: proj/g-sorcery X-VCS-Files: g_sorcery/package_db.py X-VCS-Directories: g_sorcery/ X-VCS-Committer: jauhien X-VCS-Committer-Name: Jauhien Piatlicki X-VCS-Revision: 069fc871e5e00e8f4bff041f5b45a95fdf1cc9c4 X-VCS-Branch: master Date: Sun, 23 Jun 2013 00:44:21 +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: 8f71d14c-469b-4b5e-a13c-bd16789e784a X-Archives-Hash: a958e85a164b53ee008f33e28f2f8f60 commit: 069fc871e5e00e8f4bff041f5b45a95fdf1cc9c4 Author: Jauhien Piatlicki (jauhien) gmail com> AuthorDate: Sat Jun 22 22:57:42 2013 +0000 Commit: Jauhien Piatlicki gmail com> CommitDate: Sat Jun 22 22:57:42 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=069fc871 g_sorcery/package_db: get_package_description --- g_sorcery/package_db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/g_sorcery/package_db.py b/g_sorcery/package_db.py index b97a688..48101a2 100644 --- a/g_sorcery/package_db.py +++ b/g_sorcery/package_db.py @@ -320,3 +320,7 @@ class PackageDB: if not name in self.db['packages'][category]: raise Exception('No such package: ' + name) return list(self.db['packages'][category][name]) + + def get_package_description(self, package): + #a possible exception should be catched in the caller + return self.db['packages'][package.category][package.name][package.version]