aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Heinlein <keytoaster@gentoo.org>2014-04-19 18:39:03 +0200
committerTobias Heinlein <keytoaster@gentoo.org>2014-04-19 20:23:23 +0200
commit9a33ceffe2e0045bf75b1209a90e9a53530d4e0d (patch)
tree3ecbb677ccf6e4d160b36cae5bdf2e15eb93eac9
parentFixed bug when no libraries are passed (diff)
downloadgentoolkit-9a33ceffe2e0045bf75b1209a90e9a53530d4e0d.tar.gz
gentoolkit-9a33ceffe2e0045bf75b1209a90e9a53530d4e0d.tar.bz2
gentoolkit-9a33ceffe2e0045bf75b1209a90e9a53530d4e0d.zip
equery: Don't always print the license field (bug #508114).
-rw-r--r--pym/gentoolkit/equery/meta.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/pym/gentoolkit/equery/meta.py b/pym/gentoolkit/equery/meta.py
index e2d2124..d3342cd 100644
--- a/pym/gentoolkit/equery/meta.py
+++ b/pym/gentoolkit/equery/meta.py
@@ -373,12 +373,13 @@ def call_format_functions(best_match, matches):
useflags = format_useflags(best_match.metadata.use())
print_sequence(format_list(useflags))
- _license = best_match.environment(["LICENSE"])
- if QUERY_OPTS["license"]:
- _license = format_list(_license)
- else:
- _license = format_list(_license, "License: ", " " * 13)
- print_sequence(_license)
+ if QUERY_OPTS["license"] or not got_opts:
+ _license = best_match.environment(["LICENSE"])
+ if QUERY_OPTS["license"]:
+ _license = format_list(_license)
+ else:
+ _license = format_list(_license, "License: ", " " * 13)
+ print_sequence(_license)
if QUERY_OPTS["stablereq"]:
# Get {<Package 'dev-libs/glib-2.20.5'>: [u'ia64', u'm68k', ...], ...}