Skip to content
Snippets Groups Projects

:ambulance: fix getting module_list

Merged Vincent Hatakeyama requested to merge topic/default/fix into branch/default
1 file
+ 1
17
Compare changes
  • Side-by-side
  • Inline
  • 2aaac044
    :ambulance: fix getting module_list · 2aaac044
    Vincent Hatakeyama authored
    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)
+ 1
17
@@ -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"])
Loading