[kupfer] locate: Not all locate understand --quiet argument
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] locate: Not all locate understand --quiet argument
- Date: Sat, 13 Feb 2010 03:58:44 +0000 (UTC)
commit 519343ec52600ccb0671a03d27a2619a63f05026
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sat Feb 13 04:57:35 2010 +0100
locate: Not all locate understand --quiet argument
Drop the --quiet argument as it is not understood by all
implementations of locate.
Fixes bug: https://bugs.launchpad.net/kupfer/+bug/520933
kupfer/plugin/locate.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/locate.py b/kupfer/plugin/locate.py
index 2231d30..89e2441 100644
--- a/kupfer/plugin/locate.py
+++ b/kupfer/plugin/locate.py
@@ -55,9 +55,9 @@ class LocateQuerySource (Source):
# (regrettably, locate wont output streamingly to stdout)
# but we ask the second for results only after iterating the first few
first_num = 12
- first_command = ("locate --quiet --null --limit %d %s '%s'" %
+ first_command = ("locate --null --limit %d %s '%s'" %
(first_num, ignore_case, self.query))
- full_command = ("locate --quiet --null --limit %d %s '%s'" %
+ full_command = ("locate --null --limit %d %s '%s'" %
(self.max_items, ignore_case, self.query))
p1 = subprocess.Popen(first_command, shell=True, stdout=subprocess.PIPE)
p2 = subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]