Skip to contentSkip to conversation

firefox-l10n.inc: mangle download filename instead of DL_DIR

PATCH New Martin Jansa 1 participant 1 message Jun 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firefox-l10n.inc: mangle download filename instead of DL_DIR

* 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.

---
 recipes-mozilla/firefox-l10n/firefox-l10n.inc | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
recipes-mozilla/firefox-l10n/firefox-l10n.inc +2 -5
index 1be15ba..961cf3c 100644
@@ -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() {
Signature · 1 line
2.13.1