eutils.eclass: make_desktop_entry, replace unnecessary extglob
authorMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 17:20:57 +0000 (19:20 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 25 Apr 2017 17:57:53 +0000 (19:57 +0200)
commit9433c94ae5befe90b431248ffcaf80d90195ccde
tree75541af8a567736e891f0cb8e9bda31846fcd45c
parent43f2b3e99587975fc6c9f1525d0fdf501b1c704c
eutils.eclass: make_desktop_entry, replace unnecessary extglob

Replace the unnecessary use of extglob to strip file suffix
in make_desktop_entry with a plain ${x%.*}. This is pretty much
equivalent since match to one of the pre-defined suffixes is already
confirmed via the preceding conditional, and avoiding repeating
the suffix list twice makes the code simpler.
eclass/eutils.eclass