[Pkg-mozext-commits] [SCM] Debian packaging of the downthemall extension. branch, master, updated. debian/2.0.13-1-4-gef0cdb2

Michael Meskes meskes at debian.org
Sun Feb 19 13:16:41 UTC 2012


The following commit has been merged in the master branch:
commit 013f6a66bc50dc4af94bc651ac55a47c15aff4b4
Author: Michael Meskes <meskes at debian.org>
Date:   Sun Feb 19 13:11:51 2012 +0100

    Remove check for available disk space that does not work, at least on some systems.

diff --git a/debian/changelog b/debian/changelog
index a4c4e05..ee0420d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ downthemall (2.0.13-1) unstable; urgency=low
 
   * Imported Upstream version 2.0.13 (Closes: #660422)
   * Removed redundant dependency on iceweasel.
+  * Remove check for available disk space that does not work, at least on some
+    systems.
 
  -- Michael Meskes <meskes at debian.org>  Sun, 19 Feb 2012 11:40:07 +0100
 
diff --git a/debian/patches/diskspaceavailable.diff b/debian/patches/diskspaceavailable.diff
new file mode 100644
index 0000000..5a65fa6
--- /dev/null
+++ b/debian/patches/diskspaceavailable.diff
@@ -0,0 +1,44 @@
+Author: Michael Meskes <meskes at 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;
+ 		}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6ff88dd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+diskspaceavailable.diff

-- 
Debian packaging of the downthemall extension.



More information about the Pkg-mozext-commits mailing list