summaryrefslogtreecommitdiff
path: root/community/mget/fix-warnings.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mget/fix-warnings.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mget/fix-warnings.patch')
-rw-r--r--community/mget/fix-warnings.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/mget/fix-warnings.patch b/community/mget/fix-warnings.patch
new file mode 100644
index 000000000..042f5e5b5
--- /dev/null
+++ b/community/mget/fix-warnings.patch
@@ -0,0 +1,40 @@
+diff -Nur mget-1.50.old/lib/mget/error_handling.rb mget-1.50/lib/mget/error_handling.rb
+--- mget-1.50.old/lib/mget/error_handling.rb 2008-06-12 19:57:11.000000000 +0300
++++ mget-1.50/lib/mget/error_handling.rb 2009-11-02 23:39:47.587497291 +0200
+@@ -48,7 +48,7 @@
+ def setTrace(string)
+ if trace?
+ @log.info(string)
+- end
++ end
+ end
+
+ def logDir()
+@@ -63,4 +63,4 @@
+ Dir.mkdir(path) unless File.exists?(path) && File.directory?(path)
+ return path
+ end
+-end
+\ No newline at end of file
++end
+diff -Nur mget-1.50.old/lib/mget/mget.rb mget-1.50/lib/mget/mget.rb
+--- mget-1.50.old/lib/mget/mget.rb 2008-06-12 19:57:11.000000000 +0300
++++ mget-1.50/lib/mget/mget.rb 2009-11-02 23:36:38.317512845 +0200
+@@ -111,7 +111,7 @@
+ else
+ @target = target
+ end
+- end
++ end
+ end
+
+ def download=(flag)
+@@ -158,7 +158,7 @@
+ self.input=fileName # force self check again, but without validation
+ end
+ return
+- end
++ end
+ setTrace("File.exists?="+fileName)
+ if File.exists? fileName
+ if File.zero? fileName