projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73fcfa8
)
nmbug-status: only import notmuch when needed
author
Jani Nikula
<jani@nikula.org>
Mon, 1 Apr 2013 09:44:02 +0000
(12:44 +0300)
committer
David Bremner
<bremner@debian.org>
Sat, 6 Apr 2013 11:36:34 +0000
(08:36 -0300)
Make it possible to use the script to query search views without
notmuch python bindings installed.
devel/nmbug/nmbug-status
patch
|
blob
|
history
diff --git
a/devel/nmbug/nmbug-status
b/devel/nmbug/nmbug-status
index 55f0d738f383781319ee4164f004ca5e78411853..934c895f033a1b4602f099513e2c31909b3e1827 100755
(executable)
--- a/
devel/nmbug/nmbug-status
+++ b/
devel/nmbug/nmbug-status
@@
-7,7
+7,6
@@
# - argparse; either python 2.7, or install separately
import datetime
-import notmuch
import rfc822
import urllib
import json
@@
-57,6
+56,9
@@
elif args.get_query != None:
if args.get_query == view['title']:
print ' and '.join(view['query'])
sys.exit(0)
+else:
+ # only import notmuch if needed
+ import notmuch
if args.text:
output_format = 'text'