From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH][meta-browser] firefox-l10n.inc: mangle download filename instead of DL_DIR
Date: Tue, 13 Jun 2017 10:06:09 +0200 [thread overview]
Message-ID: <20170613080609.4476-1-Martin.Jansa@gmail.com> (raw)
* it causes unnecessary directories on premirrors, which imho aren't even used
because fetcher will search for ${LANGUAGE}.xpi in the top level directories
not in ${PN}-${PV} subdirectories.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
recipes-mozilla/firefox-l10n/firefox-l10n.inc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/recipes-mozilla/firefox-l10n/firefox-l10n.inc b/recipes-mozilla/firefox-l10n/firefox-l10n.inc
index 1be15ba..961cf3c 100644
--- a/recipes-mozilla/firefox-l10n/firefox-l10n.inc
+++ b/recipes-mozilla/firefox-l10n/firefox-l10n.inc
@@ -13,10 +13,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d
LANGUAGE = "${@get_language_name('${PN}')}"
PR = "r3"
-# Mangle place where to store the file
-DL_DIR_append = "/${PN}-${PV}"
-
-SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/linux-i686/xpi/${LANGUAGE}.xpi"
+SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/linux-i686/xpi/${LANGUAGE}.xpi;downloadfilename=${PN}-${PV}-${LANGUAGE}.xpi"
S = "${WORKDIR}"
inherit allarch
@@ -31,7 +28,7 @@ def get_language_name(package):
return lang
do_configure() {
- xpi-unpack ${LANGUAGE}.xpi ${LANGUAGE}
+ xpi-unpack ${PN}-${PV}-${LANGUAGE}.xpi ${LANGUAGE}
}
do_install() {
--
2.13.1
reply other threads:[~2017-06-13 10:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170613080609.4476-1-Martin.Jansa@gmail.com \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox