From 1387dfcf15e55ba49aeca7e86cc37a35895706f2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 17 Oct 2007 21:44:10 +0000 Subject: Fix the normalize_needed regex to properly match // anywhere in the path. Also add support for detection of . or .. where appropriate. svn path=/main/trunk/; revision=8166 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 2b5e6efbd..d73c4a117 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -823,7 +823,7 @@ class dblink(object): """ import re - _normalize_needed = re.compile(r'//|^[^/]|.+/$') + _normalize_needed = re.compile(r'.*//.*|^[^/]|.+/$|(^|.*/)\.\.?(/.*|$)') def __init__(self, cat, pkg, myroot, mysettings, treetype=None, vartree=None): -- cgit v1.2.3-1-g7c22