bl-odoo 0.2.4__tar.gz → 0.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bl-odoo
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: A command-line tool for managing Odoo dependencies.
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License-Expression: MIT
@@ -37,7 +37,6 @@ def create_clone_args(name: str, ref_spec_info: RefspecInfo, remote_url: str, sh
37
37
  args = [
38
38
  "clone",
39
39
  "--filter=tree:0",
40
- "--sparse",
41
40
  ]
42
41
 
43
42
  if name == "odoo" or shallow:
@@ -45,6 +44,8 @@ def create_clone_args(name: str, ref_spec_info: RefspecInfo, remote_url: str, sh
45
44
  "--depth",
46
45
  "1",
47
46
  ]
47
+ else:
48
+ args += ["--sparse"]
48
49
 
49
50
  if ref_spec_info.type == OriginType.REF:
50
51
  args += [
@@ -238,7 +239,7 @@ class SpecProcessor:
238
239
  if path_dest_symlink.is_symlink():
239
240
  path_dest_symlink.unlink()
240
241
 
241
- os.symlink(path_src_symlink, path_dest_symlink, True)
242
+ os.symlink(path_src_symlink.relative_to(path_dest_symlink, walk_up=True), path_dest_symlink, True)
242
243
  except OSError as e:
243
244
  return -1, str(e)
244
245
 
@@ -389,10 +390,11 @@ class SpecProcessor:
389
390
  return ret
390
391
 
391
392
  progress.update(task_id, status="Linking directory")
392
- ret, err = self.link_all_modules(symlink_modules, module_path)
393
- if ret != 0:
394
- progress.update(task_id, status=f"[red]Could not link modules: {err}")
395
- return ret
393
+ if name != "odoo":
394
+ ret, err = self.link_all_modules(symlink_modules, module_path)
395
+ if ret != 0:
396
+ progress.update(task_id, status=f"[red]Could not link modules: {err}")
397
+ return ret
396
398
 
397
399
  progress.update(task_id, status="[green]Complete")
398
400
  progress.remove_task(task_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bl-odoo
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: A command-line tool for managing Odoo dependencies.
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bl-odoo"
3
- version = "0.2.4"
3
+ version = "0.2.6"
4
4
  description = "A command-line tool for managing Odoo dependencies."
5
5
  authors = [
6
6
  { name="Your Name", email="your.email@example.com" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes