diff options
author | kitsunyan | 2018-04-08 23:43:23 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-08 23:43:23 +0000 |
commit | 4cc6bd81cf2e615a73a3c3ca278d2759d703e19b (patch) | |
tree | 6278b8f9d99d071ef347bc71cf45d0cedcbf92ba /src | |
parent | e1064498261c6a95d18ab79579ecdacdbbf44d55 (diff) |
Close gpg.conf after reading
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman.nim | 2 |
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, |