aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/nixpkgs_drv_pname.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/nixpkgs_drv_pname.py b/bin/nixpkgs_drv_pname.py
index 52852cf..88cf732 100755
--- a/bin/nixpkgs_drv_pname.py
+++ b/bin/nixpkgs_drv_pname.py
@@ -80,6 +80,7 @@ class drv:
def pname_from_drv_path(drv_path: str) -> str | None:
f = open(drv_path, 'r')
drv_string = f.readline()
+ f.close()
match = re.search('"pname","([^"]+)', drv_string)
if match is not None:
return match.group(1)