blob: 2eec2de97ad8a884b208f8d74d2fc2b235426639 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#Patch by Jesus Rivero <neurogeek@gentoo.org>
#Sent upstream on 2011-07-20
diff -uNr yolk-0.4.1.orig/yolk/cli.py yolk-0.4.1/yolk/cli.py
--- yolk-0.4.1.orig/yolk/cli.py 2008-08-11 10:36:54.000000000 -0400
+++ yolk-0.4.1/yolk/cli.py 2011-07-20 10:53:26.000000000 -0400
@@ -830,10 +830,12 @@
"""
pprinter = pprint.PrettyPrinter()
try:
- pprinter.pprint(pkg_resources.get_entry_map(self.options.entry_map))
+ entry_map = pkg_resources.get_entry_map(self.options.show_entry_map)
+ if entry_map:
+ pprinter.pprint(entry_map)
except pkg_resources.DistributionNotFound:
self.logger.error("Distribution not found: %s" \
- % self.options.entry_map)
+ % self.options.show_entry_map)
return 1
return 0
|