Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit be45516

Browse files
authored
fix local packages
1 parent 7b98723 commit be45516

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/install.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121
def main(package, noconfirm=False):
2222
local = False
2323
# check if package is local
24-
if package.endswith(".car"):
24+
if package.endswith(".car") or package.endswith(".car.zip"):
25+
status("Local package!")
2526
os.system(f"unzip {package}")
26-
os.chdir(package)
27+
os.chdir(package.strip(".zip").strip(".car"))
2728
with open("install_script.py", "r") as f:
2829
script = f.read()
30+
for i in script.splitlines():
31+
if i.startswith("#NAME: "):
32+
package = i.replace("#NAME: ", "")
2933
local = True
3034
# first check if the name is correct, autocorrect if not
3135
# using umbrella/autocorrect_package.py (unlicense)

0 commit comments

Comments
 (0)