summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2011-03-27 18:58:02 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 10:46:32 +0200
commite6338f020b1089f31b6a8decaa3a6b403dc797b3 (patch)
treec5f6585e58acff8e3246abf86e50e08052f7970a /eclass
parentBump noscript (diff)
downloadmv-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.eclass5
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}"