From: | "Jory Pratt (anarchy)" <anarchy@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: mozextension.eclass |
Date: | Mon, 31 Oct 2011 12:28:28 |
Message-Id: | 20111031122814.E5A652004B@flycatcher.gentoo.org |
1 | anarchy 11/10/31 12:28:14 |
2 | |
3 | Modified: mozextension.eclass |
4 | Log: |
5 | Fix xpi_unpack to support current directory, bug #388181 |
6 | |
7 | Revision Changes Path |
8 | 1.6 eclass/mozextension.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozextension.eclass?rev=1.6&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozextension.eclass?rev=1.6&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mozextension.eclass?r1=1.5&r2=1.6 |
13 | |
14 | Index: mozextension.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v |
17 | retrieving revision 1.5 |
18 | retrieving revision 1.6 |
19 | diff -u -r1.5 -r1.6 |
20 | --- mozextension.eclass 30 Dec 2010 03:06:04 -0000 1.5 |
21 | +++ mozextension.eclass 31 Oct 2011 12:28:14 -0000 1.6 |
22 | @@ -1,8 +1,13 @@ |
23 | # Copyright 1999-2007 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.5 2010/12/30 03:06:04 anarchy Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.6 2011/10/31 12:28:14 anarchy Exp $ |
27 | # |
28 | -# mozextention.eclass: installing firefox extensions and language packs |
29 | +# @ECLASS: mozextension.eclass |
30 | +# @MAINTAINER: |
31 | +# Mozilla team <mozilla@g.o> |
32 | +# @DESCRIPTION: |
33 | +# Install extensions for use in mozilla products. |
34 | + |
35 | |
36 | inherit eutils |
37 | |
38 | @@ -28,8 +33,7 @@ |
39 | case "${xpi##*.}" in |
40 | ZIP|zip|jar|xpi) |
41 | mkdir "${WORKDIR}/${xpiname}" && \ |
42 | - cd "${WORKDIR}/${xpiname}" && \ |
43 | - unzip -qo "${srcdir}${xpi}" || die "failed to unpack ${xpi}" |
44 | + unzip -qo "${srcdir}${xpi}" -d "${WORKDIR}/${xpiname}" || die "failed to unpack ${xpi}" |
45 | ;; |
46 | *) |
47 | einfo "unpack ${xpi}: file format not recognized. Ignoring." |