public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/db/
Date: Tue,  3 Sep 2013 13:15:14 +0000 (UTC)	[thread overview]
Message-ID: <1378213728.0509ccb1fa18b88e06b5bbb300b191776a2b6642.dywi@gentoo> (raw)

commit:     0509ccb1fa18b88e06b5bbb300b191776a2b6642
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Tue Sep  3 13:08:48 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Tue Sep  3 13:08:48 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=0509ccb1

distmap entry: get_repo_name()

+ return entry in add_distfile_owner()

---
 roverlay/db/distmap.py | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/roverlay/db/distmap.py b/roverlay/db/distmap.py
index ba0b29b..1326e5e 100644
--- a/roverlay/db/distmap.py
+++ b/roverlay/db/distmap.py
@@ -123,6 +123,10 @@ class DistMapInfo ( object ):
       #return getattr ( self, self.DIGEST_TYPE )
    # --- end of digest (...) ---
 
+   def get_repo_name ( self ):
+      return None if self.repo_name is self.UNSET else self.repo_name
+   # --- end of get_repo_name (...) ---
+
    def compare_digest ( self, package_info ):
       p_hash = package_info.make_distmap_hash()
       return ( bool ( p_hash == self.digest ), p_hash )
@@ -266,11 +270,14 @@ class _DistMapBase ( object ):
       if entry is not None:
          entry.add_backref ( backref )
       else:
-         new_entry = self.add_dummy_entry (
+         entry = self.add_dummy_entry (
             distfile, distfilepath=distfilepath, log_level=True
          )
+         # FIXME:
          # ^ raises: ? if distfile is missing
-         new_entry.add_backref ( backref )
+         entry.add_backref ( backref )
+      # -- end if
+      return entry
    # --- end of add_distfile_owner (...) ---
 
    def gen_info_lines ( self, field_delimiter ):


             reply	other threads:[~2013-09-03 13:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 13:15 André Erdmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-07  4:19 [gentoo-commits] proj/R_overlay:master commit in: roverlay/db/ Benda XU
2014-07-16 15:14 André Erdmann
2013-09-05 14:43 André Erdmann
2013-09-05 14:43 André Erdmann
2013-09-05 14:43 André Erdmann
2013-09-05 10:24 André Erdmann
2013-09-05  9:25 André Erdmann
2013-09-05  9:25 André Erdmann
2013-09-05  9:25 André Erdmann
2013-09-03 15:37 André Erdmann
2013-09-03 12:21 André Erdmann
2013-09-03 12:21 André Erdmann
2013-09-02  8:44 André Erdmann
2013-08-30 15:25 André Erdmann
2013-08-30 15:23 André Erdmann
2013-08-30 14:49 André Erdmann
2013-08-30 14:49 André Erdmann
2013-08-22  9:01 André Erdmann
2013-08-16 14:26 André Erdmann
2013-08-16 12:42 André Erdmann
2013-08-15  9:18 André Erdmann
2013-08-14 14:56 André Erdmann
2013-08-14 14:56 André Erdmann
2013-08-13  8:56 André Erdmann
2013-07-30 18:40 André Erdmann
2013-07-10 15:10 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-10 16:16 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-06-22 15:14 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-06-22 15:24 ` [gentoo-commits] proj/R_overlay:master " André Erdmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1378213728.0509ccb1fa18b88e06b5bbb300b191776a2b6642.dywi@gentoo \
    --to=dywi@mailerd.de \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox