Update sanitizer to handle '/sources' in pybasedir
Change-Id: Icafe29f1b64c2ce406f73fa7ebc93f97592c5313
This commit is contained in:
parent
e43a8cd9e1
commit
cccee65b46
@ -221,7 +221,8 @@ def _sanitize_default(opt):
|
||||
if pathelm.endswith('/'):
|
||||
pathelm = pathelm[:-1]
|
||||
if default.startswith(pathelm):
|
||||
default.replace(pathelm, '/usr/lib/python/site-packages')
|
||||
default = re.sub(r'%s(/sources)?' % pathelm,
|
||||
'/usr/lib/python/site-packages', default)
|
||||
|
||||
return default
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user