From a95bef8fe444c9bc6a96bc71e6e2fac3ef6c6ef3 Mon Sep 17 00:00:00 2001 From: lxnay Date: Wed, 16 Apr 2008 17:01:59 +0000 Subject: [PATCH] testing treeupdate server-side git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1780 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 1 + libraries/entropyTools.py | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/entropy.py b/libraries/entropy.py index df9818b90..3867ea36b 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -8388,6 +8388,7 @@ class PackageMaskingParser: try: f = open(mtimefile,"r") mtime = float(f.readline().strip()) + f.close() # compare with current mtime try: currmtime = os.path.getmtime(maskfile) diff --git a/libraries/entropyTools.py b/libraries/entropyTools.py index ba783c42c..36de9ee59 100644 --- a/libraries/entropyTools.py +++ b/libraries/entropyTools.py @@ -1287,6 +1287,7 @@ def spawnFunction(f, *args, **kwds): f = os.fdopen(pread, 'rb') status, result = pickle.load(f) os.waitpid(pid, 0) + f.close() if status == 0: return result else: