Gentoo Archives: gentoo-commits

From: "André Erdmann" <dywi@×××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/depres/simpledeprule/
Date: Wed, 01 Aug 2012 21:10:53
Message-Id: 1343855446.db13e3750a908c150432250f8326427afdf03d61.dywi@gentoo
1 commit: db13e3750a908c150432250f8326427afdf03d61
2 Author: André Erdmann <dywi <AT> mailerd <DOT> de>
3 AuthorDate: Wed Aug 1 21:10:46 2012 +0000
4 Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
5 CommitDate: Wed Aug 1 21:10:46 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=db13e375
7
8 resolve selfdeps with dots in their names
9
10 ---
11 roverlay/depres/simpledeprule/abstractrules.py | 6 ++++++
12 1 files changed, 6 insertions(+), 0 deletions(-)
13
14 diff --git a/roverlay/depres/simpledeprule/abstractrules.py b/roverlay/depres/simpledeprule/abstractrules.py
15 index e4aa7b2..18dc4b7 100644
16 --- a/roverlay/depres/simpledeprule/abstractrules.py
17 +++ b/roverlay/depres/simpledeprule/abstractrules.py
18 @@ -32,6 +32,12 @@ class SimpleRule ( deprule.DependencyRule ):
19 if not dep_str is None:
20 self.dep_alias.append ( dep_str )
21
22 + if self.is_selfdep and dep_str is not None:
23 + # add the actual package name (replace '_' by '.') to self.dep_alias
24 + actual_name = dep_str.replace ( '_', '.' )
25 + if actual_name != dep_str:
26 + self.dep_alias.append ( dep_str )
27 +
28 # --- end of __init__ (...) ---
29
30 def done_reading ( self ):