Skip to content
Snippets Groups Projects
Commit 2aaac04452e7 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: fix getting module_list

In the case of the CI, the path is the absolute path to the directory and this does not work at all with the current code (infinite loop)
parent ac2e6ae90cf9
No related branches found
No related tags found
1 merge request!40🚑 fix getting module_list
......@@ -61,23 +61,7 @@
_logger.error("Expansion without path for %s", name)
raise Exception("Expansion without path for %s" % name)
else:
# put in re_path everything but the first path element
# this allows blacklisting odoo-mint/theme when expanding
# mint hr.
if path:
d = os.path.split(path)
p = ""
while d:
d, tail = d
if d:
p = os.path.join(tail, p)
d = os.path.split(d)
re_path = (
os.path.join(p, value["path"]) if p else value["path"]
)
else:
re_path = value["path"]
if blacklist and re.match(blacklist, re_path):
if blacklist and re.match(blacklist, value["path"]):
_logger.info(
"Ignoring directory '%s' due to blacklisting",
os.path.join(path, value["path"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment