From 635df1356525a30bf236951c7a402f4eb70a249e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 17 Oct 2007 21:44:42 +0000 Subject: [PATCH] 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 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2