Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "André Erdmann" <dywi@...>
Subject: proj/R_overlay:master commit in: roverlay/
Date: Wed, 6 Jun 2012 19:52:35 +0000 (UTC)
commit:     30dd2c76ba89169931784493cf326dd691a4a7bc
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Wed Jun  6 19:43:22 2012 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Wed Jun  6 19:43:22 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=30dd2c76

roverlay/config.py: fix _add_entry(...)

---
 roverlay/config.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/roverlay/config.py b/roverlay/config.py
index 424e69f..6753d4e 100644
--- a/roverlay/config.py
+++ b/roverlay/config.py
@@ -328,7 +328,7 @@ class ConfigTree:
 			cref_level = 0
 
 			# check if cref is a link to another entry in CONFIG_ENTRY_MAP
-			while isinstance ( cref, str ):
+			while isinstance ( cref, str ) and cref != '':
 				if cref == original_cref and cref_level:
 					self.logger.critical ( "CONFIG_ENTRY_MAP is invalid! circular cref detected." )
 					raise Exception ( "CONFIG_ENTRY_MAP is invalid!" )
@@ -415,12 +415,13 @@ class ConfigTree:
 		# load file
 
 		try:
+			fh     = open ( config_file, 'r' )
+			reader = shlex.shlex ( fh )
 			reader.wordchars       += ' ./$()[]:+-@*~'
-			fh                      = open ( config_file, 'r' )
-			reader                  = shlex.shlex ( fh )
 			reader.whitespace_split = False
 
 
+
 			nextline = lambda : ( reader.get_token() for n in range (3) )
 
 			option, equal, value = nextline ()


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
proj/R_overlay:master commit in: roverlay/
Next by thread:
proj/R_overlay:master commit in: roverlay/
Previous by date:
proj/R_overlay:master commit in: /
Next by date:
proj/R_overlay:master commit in: roverlay/depres/


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.