From: Zac Medico Date: Wed, 17 Oct 2007 21:44:42 +0000 (-0000) Subject: Fix the normalize_needed regex to properly match // X-Git-Tag: v2.1.3.16~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=635df1356525a30bf236951c7a402f4eb70a249e;p=portage.git Fix the normalize_needed regex to properly match // anywhere in the path. Also add support for detection of . or .. where appropriate. (trunk r8166) svn path=/main/branches/2.1.2/; revision=8167 --- diff --git a/pym/portage.py b/pym/portage.py index 18348da48..bbe2afdd1 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7162,7 +7162,7 @@ class dblink: """ import re - _normalize_needed = re.compile(r'//|^[^/]|.+/$') + _normalize_needed = re.compile(r'.*//.*|^[^/]|.+/$|(^|.*/)\.\.?(/.*|$)') def __init__(self, cat, pkg, myroot, mysettings, treetype=None, vartree=None):