Skip to content

Commit

Permalink
Move /bpl to badtechnologies/bpl (#3)
Browse files Browse the repository at this point in the history
* Move `/bpl` to badtechnologies/bpl (#2)

See https://github.com/badtechnologies/bpl

* Update BPL URLs

* Add license to packages
  • Loading branch information
logandhillon authored Jul 17, 2024
1 parent bee4086 commit 6ae4d92
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 342 deletions.
32 changes: 0 additions & 32 deletions bpl/bpl.schema.json

This file was deleted.

6 changes: 0 additions & 6 deletions bpl/bpm/bpl.json

This file was deleted.

149 changes: 0 additions & 149 deletions bpl/bpm/bpm.py

This file was deleted.

7 changes: 0 additions & 7 deletions bpl/bssh/bpl.json

This file was deleted.

124 changes: 0 additions & 124 deletions bpl/bssh/bssh.py

This file was deleted.

8 changes: 0 additions & 8 deletions bpl/core/bpl.json

This file was deleted.

8 changes: 0 additions & 8 deletions bpl/example/bpl.json

This file was deleted.

1 change: 0 additions & 1 deletion bpl/example/example.py

This file was deleted.

10 changes: 5 additions & 5 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ def exitloop():

print_header("INSTALL BPM")

BPL_URI = "https://raw.githubusercontent.com/badtechnologies/bdsh/main/bpl"
BPI_URL = "https://raw.githubusercontent.com/badtechnologies/bpl/main/lib"

install_packages = True
while install_packages:
res = requests.get(f'{BPL_URI}/bpm/bpl.json')
res = requests.get(f'{BPI_URL}/bpm/bpl.json')

if not res.ok:
print(f"""Something went wrong while fetching bpm from bpl, more information below:
\tError:\t\tHTTP {res.status_code} {res.reason}
\tLibrary:\t{BPL_URI}
\tLibrary:\t{BPI_URL}
\tResponse:\t{res.content.decode()}""")

prompt("Try again?", lambda: globals().update(
Expand All @@ -98,13 +98,13 @@ def exitloop():
if install_packages:
meta = res.json()
print(f"Installing bpm-{meta['version']} ({meta['name']})")
res = requests.get(f'{BPL_URI}/bpm/{meta['bin']}')
res = requests.get(f'{BPI_URL}/bpm/{meta['bin']}')

while install_packages:
if not res.ok:
print(f"""Something went wrong while downloading bpm binaries, more information below:
\tError:\t\tHTTP {res.status_code} {res.reason}
\tLibrary:\t{BPL_URI}
\tLibrary:\t{BPI_URL}
\tResponse:\t{res.content.decode()}
\tRequested Bin:\t{meta['bin']}
\tMetadata:\t{meta}""")
Expand Down
Loading

0 comments on commit 6ae4d92

Please sign in to comment.