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