summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/vartree.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 38d323849..99db29661 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -821,6 +821,10 @@ class dblink(object):
This class provides an interface to the installed package database
At present this is implemented as a text backend in /var/db/pkg.
"""
+
+ import re
+ _normalize_needed = re.compile(r'//|^[^/]|.+/$')
+
def __init__(self, cat, pkg, myroot, mysettings, treetype=None,
vartree=None):
"""
@@ -872,8 +876,6 @@ class dblink(object):
self._installed_instance = None
self.contentscache = None
self._contents_inodes = None
- import re
- self._normalize_needed = re.compile(r'//|^[^/]|.+/$')
def lockdb(self):
if self._lock_vdb: