Commit 4aa9796d4425ba9aea69dd9c4e4af7d7a5dcdc4b

Thomas de Grivel 2023-02-28T17:40:35

close files

diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index d0aca78..6bd3152 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -106,6 +106,7 @@ EOF
   </body>
 </html>
 EOF
+          output.close
         end
       end
     end
diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 05a06ca..98fd8ab 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -271,6 +271,7 @@ class Rbpkg::Repo
           output.write(line)
         end
       end
+      output.close
     end
     cmd! "libtool --mode=finish #{Rbpkg.lib_dir}"
   end