Package: downthemall / 2.0.13-2

diskspaceavailable.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Author: Michael Meskes <meskes@debian.org>
Description: Remove check for available disk space that does not work, at least on some systems.

--- a/chrome/chrome.jar!/content/common/internalFunctions.js
+++ b/chrome/chrome.jar!/content/common/internalFunctions.js
@@ -131,13 +131,13 @@ var Utils = {
 				parent = parent.QueryInterface(Ci.nsILocalFile);
 				// we look for a directory that is writable and has some disk-space
 				if (parent.isDirectory() && parent.isReadable() && parent.isWritable()) {
-					try {
-						return parent.diskSpaceAvailable ? directory : false;
-					}
-					catch (ex) {
+					//try {
+					//	return parent.diskSpaceAvailable ? directory : false;
+					//}
+					//catch (ex) {
 						// Solaris compat: #889
 						return directory;
-					}
+					//}
 				}
 			}
 		}
@@ -158,14 +158,14 @@ var Utils = {
 	getFreeDisk: function(file) {
 		while (file) {
 			if (file.exists() && file.isDirectory()) {
-				try {
-					return file.diskSpaceAvailable;
-				}
-				catch (ex) {
+				//try {
+				//	return file.diskSpaceAvailable;
+				//}
+				//catch (ex) {
 					// Solaris compat: #889
 					// As we cannot get a correct value simply return max int64_t
 					return 9223372036854775807;
-				}					
+				//}				
 			}
 			file = file.parent;
 		}