aboutsummaryrefslogtreecommitdiff
path: root/src/pacman.nim
diff options
context:
space:
mode:
authorkitsunyan2018-04-08 23:43:23 +0000
committerkitsunyan2018-04-08 23:43:23 +0000
commit4cc6bd81cf2e615a73a3c3ca278d2759d703e19b (patch)
tree6278b8f9d99d071ef347bc71cf45d0cedcbf92ba /src/pacman.nim
parente1064498261c6a95d18ab79579ecdacdbbf44d55 (diff)
Close gpg.conf after reading
Diffstat (limited to 'src/pacman.nim')
-rw-r--r--src/pacman.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman.nim b/src/pacman.nim
index ecec5dc..b8c62b5 100644
--- a/src/pacman.nim
+++ b/src/pacman.nim
@@ -376,6 +376,8 @@ proc obtainPacmanConfig*(args: seq[Argument]): PacmanConfig =
pgpKeyserver = some(line[9 .. ^1].strip)
except:
discard
+ finally:
+ file.close()
pgpKeyserver)
let config = PacmanConfig(rootOption: root, dbOption: db, gpgOption: gpg,