Fix ResourceWarning.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Tue, 24 Dec 2013 08:27:58 +0000 (09:27 +0100)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Tue, 24 Dec 2013 08:27:58 +0000 (09:27 +0100)
bin/ebuild

index f8ac5b83bac706095ad7d3177bb8acf9f7c57362..262dab6d87f0d4e367d0f8a0971c004c32b98ded 100755 (executable)
@@ -306,7 +306,7 @@ def stale_env_warning():
 
                        if ebuild_changed:
                                open(os.path.join(tmpsettings['PORTAGE_BUILDDIR'],
-                                       '.ebuild_changed'), 'w')
+                                       '.ebuild_changed'), 'w').close()
 
 from portage.exception import PermissionDenied, \
        PortagePackageException, UnsupportedAPIException