summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-20 22:03:03 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-20 22:03:03 +0200
commitf8b737b3f2dc97e2bd3b40b55bfcd35459ecf950 (patch)
treef370a7965c1c2485465bf394aa5ef0bdd13d6591 /module/PyFile.py
parentMU fix (diff)
downloadpyload-f8b737b3f2dc97e2bd3b40b55bfcd35459ecf950.tar.xz
online check for container
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index 540933a93..9390c9cca 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -132,7 +132,9 @@ class PyFile(object):
@lock
def release(self):
"""sync and remove from cache"""
- self.sync()
+ # file has valid package
+ if self.packageid > 0:
+ self.sync()
if hasattr(self, "plugin") and self.plugin:
self.plugin.clean()