Skip to content

Commit

Permalink
Merge branch 'zmsticketprinter-integration' of https://github.com/it-…
Browse files Browse the repository at this point in the history
…at-m/eappointment into zmsticketprinter-integration
  • Loading branch information
manjencic committed Jan 26, 2024
2 parents 5c3f107 + a3dce77 commit 3b04720
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions cli
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ def cli_modules_reference_libraries(no_symlink: bool):
with open(composer_file_path, "r") as f:
composer_content = json.load(f)

composer_content["repositories"] = composer_content.get("repositories", [])
if len(list(filter(lambda x: x.get("url") == "../*", composer_content["repositories"]))) == 0:
composer_content["repositories"].append({
"type": "path",
"url": "../*",
"options": {
"symlink": not no_symlink
}
})
composer_content["repositories"] = list([i for i in composer_content.get("repositories", []) if i.get("type") != "path" and i.get("url", None) != "../*"])
composer_content["repositories"].append({
"type": "path",
"url": "../*",
"options": {
"symlink": not no_symlink
}
})

require = composer_content.get("require", [])
for dependency_key in require:
Expand Down

0 comments on commit 3b04720

Please sign in to comment.