diff options
author | Martin Väth <martin@mvath.de> | 2011-03-27 18:58:02 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2015-10-11 10:46:32 +0200 |
commit | e6338f020b1089f31b6a8decaa3a6b403dc797b3 (patch) | |
tree | c5f6585e58acff8e3246abf86e50e08052f7970a /eclass | |
parent | Bump noscript (diff) | |
download | mv-e6338f020b1089f31b6a8decaa3a6b403dc797b3.tar.gz mv-e6338f020b1089f31b6a8decaa3a6b403dc797b3.tar.bz2 mv-e6338f020b1089f31b6a8decaa3a6b403dc797b3.zip |
Bump noscript. Make mv_mozextension.eclass slightly more compatible
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mv_mozextension.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/mv_mozextension.eclass b/eclass/mv_mozextension.eclass index 8a2b19d6..2a6e7b55 100644 --- a/eclass/mv_mozextension.eclass +++ b/eclass/mv_mozextension.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header $ @@ -249,7 +249,8 @@ xpi_install() { x="${1}" # determine id for extension - d="$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${x}"/install.rdf)" \ + d='{ /\<\(em:\)*id\>/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' + d="$(sed -n -e '/install-manifest/,$ '"${d}" "${x}"/install.rdf)" \ && [ -n "${d}" ] || die "failed to determine extension id" if [ -n "${MOZILLA_EXTENSIONS_DIRECTORY}" ] then d="${MOZILLA_EXTENSIONS_DIRECTORY}/${d}" |