public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] proj/R_overlay:master commit in: roverlay/depres/simpledeprule/
@ 2012-08-01 21:10 99% André Erdmann
  0 siblings, 0 replies; 1+ results
From: André Erdmann @ 2012-08-01 21:10 UTC (permalink / raw
  To: gentoo-commits

commit:     db13e3750a908c150432250f8326427afdf03d61
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Wed Aug  1 21:10:46 2012 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Wed Aug  1 21:10:46 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=db13e375

resolve selfdeps with dots in their names

---
 roverlay/depres/simpledeprule/abstractrules.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/roverlay/depres/simpledeprule/abstractrules.py b/roverlay/depres/simpledeprule/abstractrules.py
index e4aa7b2..18dc4b7 100644
--- a/roverlay/depres/simpledeprule/abstractrules.py
+++ b/roverlay/depres/simpledeprule/abstractrules.py
@@ -32,6 +32,12 @@ class SimpleRule ( deprule.DependencyRule ):
 		if not dep_str is None:
 			self.dep_alias.append ( dep_str )
 
+		if self.is_selfdep and dep_str is not None:
+			# add the actual package name (replace '_' by '.') to self.dep_alias
+			actual_name = dep_str.replace ( '_', '.' )
+			if actual_name != dep_str:
+				self.dep_alias.append ( dep_str )
+
 	# --- end of __init__ (...) ---
 
 	def done_reading ( self ):


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-08-01 21:10 99% [gentoo-commits] proj/R_overlay:master commit in: roverlay/depres/simpledeprule/ André Erdmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox