diff packages.py @ 60:a949704defd0

new pyinfra
author drewp@bigasterisk.com
date Sun, 01 May 2022 23:31:20 -0700
parents 4c15fc1e879d
children 50100cad1f38
line wrap: on
line diff
--- a/packages.py	Sun May 01 23:30:09 2022 -0700
+++ b/packages.py	Sun May 01 23:31:20 2022 -0700
@@ -73,7 +73,7 @@
     dl = f'/tmp/kitty-{vers}-x86_64.txz'
     files.download(src=f"https://github.com/kovidgoyal/kitty/releases/download/v{vers}/kitty-{vers}-x86_64.txz",
                    dest=dl)
-    files.makedirs(local, exist_ok=True)
+    files.directory(local)
     server.shell([
         f"mkdir -p {local}",  # https://github.com/Fizzadar/pyinfra/issues/777
         f"aunpack --extract-to={local} {dl}",