dotlocalslashbin 0.0.20__tar.gz → 0.0.22__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: dotlocalslashbin
3
- Version: 0.0.20
3
+ Version: 0.0.22
4
4
  Summary: Download and extract files to `~/.local/bin/`.
5
5
  Author-email: Keith Maxwell <keith.maxwell@gmail.com>
6
6
  Requires-Python: >=3.13
@@ -23,7 +23,7 @@ from urllib.request import urlopen
23
23
  from zipfile import ZipFile
24
24
 
25
25
 
26
- __version__ = "0.0.20"
26
+ __version__ = "0.0.22"
27
27
 
28
28
  _CACHE = Path("~/.cache/dotlocalslashbin/")
29
29
  _HOME = str(Path("~").expanduser())
@@ -101,7 +101,7 @@ def main() -> int:
101
101
  prompt = "#" if item.version else "$"
102
102
  print(" ".join((prompt, arg0.replace(_HOME, "~"), item.version)))
103
103
  if item.version:
104
- run([arg0, item.version], check=True)
104
+ run([arg0, *split(item.version)], check=True)
105
105
  print()
106
106
 
107
107
  return 0
@@ -185,7 +185,7 @@ def _untar(item: Item) -> None:
185
185
 
186
186
 
187
187
  def _guess_action(item: Item) -> Action:
188
- if item.url.endswith((".tar.gz", ".tar")):
188
+ if item.url.endswith((".tar.xz", ".tar.gz", ".tar")):
189
189
  guess = Action.untar
190
190
  elif item.url.endswith(".zip"):
191
191
  guess = Action.unzip