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 C2C20138202 for ; Mon, 2 Sep 2013 08:44:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F02E5E0D44; Mon, 2 Sep 2013 08:44:35 +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 84693E0D44 for ; Mon, 2 Sep 2013 08:44:35 +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 8FDFD33EB36 for ; Mon, 2 Sep 2013 08:44:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 44959E545E for ; Mon, 2 Sep 2013 08:44:33 +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: <1378111299.c65023a5dc2ac5e77f913910f8e9419f801352f3.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/packageinfo.py X-VCS-Directories: roverlay/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: c65023a5dc2ac5e77f913910f8e9419f801352f3 X-VCS-Branch: master Date: Mon, 2 Sep 2013 08:44:33 +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: ce6debae-ec20-4c8b-aa4f-890d1bf4c812 X-Archives-Hash: 07e0026720ae26556802beabf2b80a5e commit: c65023a5dc2ac5e77f913910f8e9419f801352f3 Author: André Erdmann mailerd de> AuthorDate: Mon Sep 2 08:41:39 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Mon Sep 2 08:41:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=c65023a5 packageinfo: get_src_uri_dest() identical to get_distmap_key() --- roverlay/packageinfo.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roverlay/packageinfo.py b/roverlay/packageinfo.py index 43fe4f3..af44450 100644 --- a/roverlay/packageinfo.py +++ b/roverlay/packageinfo.py @@ -132,6 +132,7 @@ class PackageInfo ( roverlay.util.objects.Referenceable ): 'physical_only', 'src_uri', 'has_suggests', + 'src_uri_dest', )) _UPDATE_KEYS_SIMPLE_INITIAL = frozenset (( 'package_filename', 'name', @@ -554,10 +555,14 @@ class PackageInfo ( roverlay.util.objects.Referenceable ): ) # --- end of get_distmap_item (...) --- - def get_distmap_key ( self ): - """Returns a key for the distmap.""" + def get_src_uri_dest ( self ): + """Returns a the package's filesystem path relative to the mirror + directory.""" return self.get ( "package_src_destpath" ) - # --- end of get_distmap_key (...) --- + # --- end of get_src_uri_dest (...) --- + + # which is also the key for distmap entries + get_distmap_key = get_src_uri_dest def get_distmap_value ( self, allow_digest_create=False, no_digest=False ): """Returns a data tuple for creating DistMapInfo instances.