generic-poky/meta/classes
Olaf Mandel 873a4eca11 (PRE)MIRRORS: fix pattern for npm:// without slash
For URIs with the npm:// transport but with no other slash in it, the
common MIRRORS and PREMIRRORS pattern of npm://.*/.* fails to match.
Make the last slash in the pattern optional in the mirros.bbclass and
own-mirrors.bbclass classes.

Many URIs with the npm:// transport have no slash after the host part:

  npm://registry.npmjs.org;name=foo;version=0.1.2

This means that MIRRORS and PREMIRRORS containing entries like the
first one will not match these URIs:

  npm://.*/.*   # fails to match
  npm://.*/?.*  # matches this and URIs with path components

For normal regular expressions, a pattern like 'npm://.*(/.*)?' would
probably be preferred, but that won't work here: the pattern gets split
into the substrings 'npm', '.*(' and '/.*)?', which are not valid
regular expressions individually.

(From OE-Core rev: 0d1e2b4507af28fc451b8fa94130a39ac342637d)

(From OE-Core rev: 1f5675a43e1781635fee15cc3674143c195da169)

Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-09-21 16:55:57 +01:00
..
allarch.bbclass allarch: Drop STAGING_DIR_HOST expansion 2017-01-28 23:32:16 +00:00
archiver.bbclass meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME) 2017-03-22 11:35:19 +00:00
autotools-brokensep.bbclass autotools-brokensep: Mark recipes with broken separate build dir support 2014-02-28 14:01:16 +00:00
autotools.bbclass autotools.bbclass: Replace "grep ... >/dev/null" with "grep -q" 2017-03-27 11:08:34 +01:00
base.bbclass bitbake.conf: Add HOSTTOOLS_DIR for ${TMPDIR}/hosttools 2017-05-01 08:56:35 +01:00
bash-completion.bbclass bash-completion: add bash-completion to DEPENDS for target packages 2016-08-25 23:03:45 +01:00
bin_package.bbclass bin_package.bbclass: binary package recipe class 2012-09-10 13:01:46 +01:00
binconfig-disabled.bbclass ncurses.inc: add v6 binconfig-disabled entries 2016-12-22 08:50:17 +00:00
binconfig.bbclass binconfig.bbclass: fix typo in get_binconfig_mangle() 2017-04-14 09:47:08 +01:00
blacklist.bbclass blacklist.bbclass: fix for multilib 2017-04-13 10:54:09 +01:00
bluetooth.bbclass bluetooth.bbclass: simplify recipe inference of bluetooth provider 2015-02-17 13:43:38 +00:00
bugzilla.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
buildhistory.bbclass buildhistory.bbclass: Improve the generated depends.dot file 2017-08-31 17:57:11 +01:00
buildstats-summary.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
buildstats.bbclass buildstats.bbclass: Avoid index exception in /proc/PID/io parsing 2017-03-01 23:27:10 +00:00
ccache.bbclass ccache: Use MULTIMACH_TARGET_SYS not HOST_SYS 2017-03-31 10:10:29 +01:00
chrpath.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
clutter.bbclass clutter: remove usage of FILESPATH 2013-10-26 15:59:13 +01:00
cmake.bbclass cmake.bbclass: use weakest ??= assignment for default OECMAKE_SOURCEPATH 2017-04-29 11:17:23 +01:00
cml1.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
compress_doc.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
copyleft_compliance.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
copyleft_filter.bbclass classes/copyleft_filter: include AGPL in default included list 2017-02-15 09:29:56 -08:00
core-image.bbclass core-image.bbclass: update available IMAGE_FEATURES 2017-03-24 23:43:32 +00:00
cpan-base.bbclass meta: Drop now pointless manual -dbg packaging 2015-12-16 11:56:30 +00:00
cpan.bbclass perl: fix Perl5 module builds 2015-10-29 07:31:17 +00:00
cpan_build.bbclass perl: Remove errornous extra path-specs for Module::Build based modules 2015-10-29 07:31:17 +00:00
cross-canadian.bbclass cross-canadian.bbclass: override TARGET_* flags 2017-04-10 23:00:44 +01:00
cross.bbclass cross.bbclass: override TARGET_* flags 2017-04-10 23:00:44 +01:00
crosssdk.bbclass crosssdk.bbclass: override TARGET_* flags 2017-04-10 23:00:44 +01:00
cve-check.bbclass cve-check.bbclass: use weak assignment for default CVE_PRODUCT 2017-08-29 11:57:28 +01:00
debian.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
deploy.bbclass deploy: Mark deploy tasks as MACHINE specific 2015-10-01 07:43:36 +01:00
devshell.bbclass meta: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
devupstream.bbclass devupstream.bbclass: minor typo fix 2017-04-19 10:18:43 +01:00
distro_features_check.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
distrodata.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
distutils-base.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
distutils-common-base.bbclass distutils-common-base.bbclass: remove EXTRA_OEMAKE workaround 2016-09-03 09:58:40 +01:00
distutils-tools.bbclass classes: Replace "if test" file tests with POSIX file tests 2017-03-27 11:08:34 +01:00
distutils.bbclass distutils.bbclass: Fix path to python for scripts 2017-03-31 10:10:29 +01:00
distutils3-base.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
distutils3.bbclass distutils3.bbclass: Fix path to python for scripts 2017-03-31 10:10:30 +01:00
externalsrc.bbclass externalsrc: Use git add -A for compatibility with all git versions 2017-03-22 11:35:22 +00:00
extrausers.bbclass extrausers: Use static ids when available 2017-01-19 22:47:20 +00:00
fontcache.bbclass fontcache.bbclass: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
fs-uuid.bbclass gummiboot: Remove/change gummiboot references with systemd-boot 2017-01-09 13:39:11 +00:00
gconf.bbclass gconf.bbclass: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
gettext.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
gio-module-cache.bbclass gio-module-cache: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
gnome.bbclass gnome: move introspection options to gnomebase 2015-08-24 23:46:53 +01:00
gnomebase.bbclass gnomebase: remove gnome-common-native DEPENDS 2016-11-30 15:48:06 +00:00
go.bbclass classes: Replace "if test" file tests with POSIX file tests 2017-03-27 11:08:34 +01:00
goarch.bbclass go: Add recipes for golang compilers and tools 2017-03-10 15:51:55 +00:00
gobject-introspection-data.bbclass classes/gobject-introspecton-data: lazy assign GI_DATA_ENABLED 2016-09-14 22:22:08 +01:00
gobject-introspection.bbclass Switch to Recipe Specific Sysroots 2017-01-23 12:05:17 +00:00
grub-efi.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
gsettings.bbclass gsettings: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
gtk-doc.bbclass classes: Replace "if test" file tests with POSIX file tests 2017-03-27 11:08:34 +01:00
gtk-icon-cache.bbclass gtk-icon-cache: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:49 +00:00
gtk-immodules-cache.bbclass gtk-immodules-cache: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
icecc.bbclass icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC 2017-08-29 11:57:29 +01:00
image-buildinfo.bbclass image-buildinfo.bbclass: configurable location for build file 2017-03-22 11:35:21 +00:00
image-container.bbclass image-container.bbclass: Error if not using linux-dummy 2017-02-19 06:49:00 -08:00
image-live.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
image-mklibs.bbclass image-mklibs: handle position independent binaries 2016-03-10 23:13:54 +00:00
image-prelink.bbclass image-prelink: use STAGING_*_NATIVE variables 2016-03-09 16:58:12 +00:00
image-vm.bbclass image-vm: Avoid use of fold, tac and paste commands for DISK_SIGNATURE 2017-06-12 17:02:36 +01:00
image.bbclass image: Fix "metadata is not deterministic" when chaining 2+ CONVERSION_CMDs 2017-08-29 11:57:29 +01:00
image_types.bbclass image_types: perform fsck on created ext image 2017-03-27 08:15:07 +01:00
image_types_uboot.bbclass image.bbclass: Correct chaining compression support 2017-08-29 11:57:29 +01:00
image_types_wic.bbclass image_types_wic.bbclass: tighten dependency to help do_rm_work_all 2017-03-22 11:35:21 +00:00
insane.bbclass insane.bbclass: Ignore perl as dependency for nativesdk packages 2017-08-31 17:57:12 +01:00
kernel-arch.bbclass kernel-arch.bbclass: conditional error message 2017-04-20 07:55:26 +01:00
kernel-fitimage.bbclass kernel.bbclass: introduce INITRAMFS_IMAGE_NAME 2017-04-01 08:14:58 +01:00
kernel-grub.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
kernel-module-split.bbclass kernel: use ${nonarch_base_libdir} for kernel modules installation. 2017-03-22 11:35:20 +00:00
kernel-uboot.bbclass classes: Replace "if test" file tests with POSIX file tests 2017-03-27 11:08:34 +01:00
kernel-uimage.bbclass meta: classes: Add building dir to uImage creation 2017-04-13 10:54:10 +01:00
kernel-yocto.bbclass kernel-yocto: propagate configuration errors to bbclass 2017-07-27 22:36:45 +01:00
kernel.bbclass kernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz 2017-08-29 11:57:28 +01:00
kernelsrc.bbclass image/kernelsrc/packagegroups/recipes: Remove uneeded noexec tasks 2017-01-28 23:32:16 +00:00
lib_package.bbclass lib_package.bbclass: Correct comment referring to bin directories. 2013-01-07 11:09:42 +00:00
libc-common.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
libc-package.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
license.bbclass classes/license: drop erroneous sha256 parameter in LIC_FILES_CHKSUM 2017-09-11 22:15:59 +01:00
linux-kernel-base.bbclass kernel: Rearrange for 1.8 2014-12-21 12:37:53 +00:00
linuxloader.bbclass linuxloader.bbclass: Adjust mips to cover all mips/mips64 2016-10-07 16:43:58 +01:00
live-vm-common.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
logging.bbclass classes/logging: allow shell message functions to work in devshell 2015-07-16 15:09:24 +01:00
manpages.bbclass manpages.bbclass: add a class 2016-10-28 16:15:19 +01:00
meta.bbclass meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
metadata_scm.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
migrate_localcount.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
mime.bbclass mime.bbclass: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
mirrors.bbclass (PRE)MIRRORS: fix pattern for npm:// without slash 2017-09-21 16:55:57 +01:00
module-base.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
module.bbclass kernel: use ${nonarch_base_libdir} for kernel modules installation. 2017-03-22 11:35:20 +00:00
multilib.bbclass blacklist.bbclass: fix for multilib 2017-04-13 10:54:09 +01:00
multilib_global.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
multilib_header.bbclass multilib_header: Update wrapper to handle arm 32/64 bit 2017-03-31 10:10:29 +01:00
native.bbclass bitbake.conf: Add COMPONENTS_DIR for ${STAGING_DIR}-components 2017-05-11 16:55:59 +01:00
nativesdk.bbclass native/nativesdk: Use fixed DISTRO_FEATURES 2017-04-12 15:09:58 +01:00
nopackages.bbclass nopackages.bbclass: deltask foo_setscene 2016-05-30 15:58:11 +01:00
npm.bbclass classes/npm: allow installation of devDependencies 2017-03-22 11:35:20 +00:00
oelint.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
own-mirrors.bbclass (PRE)MIRRORS: fix pattern for npm:// without slash 2017-09-21 16:55:57 +01:00
package.bbclass package.bbclass: Restore functionality to detect RPM dependencies 2017-08-31 17:57:12 +01:00
package_deb.bbclass package_deb.bbclass: Avoid writing empty custom fields 2017-04-29 11:17:23 +01:00
package_ipk.bbclass package_ipk: Clean up Source entry in ipk packages 2017-06-16 10:21:02 +01:00
package_rpm.bbclass package_rpm.bbclass: disable generation of .build-id links 2017-09-21 16:55:57 +01:00
package_tar.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
packagedata.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
packagefeed-stability.bbclass meta: remove remaining True option to getVar calls 2017-01-31 14:43:02 +00:00
packagegroup.bbclass native/nativesdk: Use fixed DISTRO_FEATURES 2017-04-12 15:09:58 +01:00
patch.bbclass classes/patch: switch to new bb.build.tasksbetween() function 2017-02-07 14:50:09 +00:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pixbufcache.bbclass pixbufcache.bbclass: update postinst script name 2017-04-19 10:18:43 +01:00
pkgconfig.bbclass pkgconfig: Drop automatic pkgconfig RDEPENDS 2012-10-18 12:13:12 +01:00
populate_sdk.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
populate_sdk_base.bbclass classes: Replace "if test" file tests with POSIX file tests 2017-03-27 11:08:34 +01:00
populate_sdk_ext.bbclass classes/populate_sdk_ext: work around runqemu behaviour within the eSDK 2017-04-19 10:38:37 +01:00
prexport.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
primport.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
ptest-gnome.bbclass ptest-gnome: extend EXTRA_OECONF in all builds, not just target 2015-11-24 15:50:25 +00:00
ptest.bbclass ptest.bbclass: use BPN in PTEST_PATH for multilib 2017-03-04 23:18:19 +00:00
python-dir.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
python3-dir.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
python3native.bbclass pythonnative.bbclass, python3native.bbclass: use DEPENDS_append instead of DEPENDS += 2016-07-01 16:22:43 +01:00
pythonnative.bbclass pythonnative.bbclass, python3native.bbclass: use DEPENDS_append instead of DEPENDS += 2016-07-01 16:22:43 +01:00
qemu.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
qemuboot.bbclass qemuboot.bbclass: save relative paths in conf file 2017-04-20 07:55:26 +01:00
recipe_sanity.bbclass recipe_sanity: Drop now unused FILESDIR 2017-04-05 23:22:11 +01:00
relative_symlinks.bbclass openssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a new class) 2017-02-09 10:52:03 +00:00
relocatable.bbclass relocatable: Make native .pc files relocatable 2017-01-31 23:47:33 +00:00
remove-libtool.bbclass remove-libtool: add new class 2016-02-02 14:44:16 +00:00
report-error.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
rm_work.bbclass rm_work.bbclass: introduce do_build_without_rm_work 2017-03-31 10:10:29 +01:00
rm_work_and_downloads.bbclass rm_work_and_downloads.bbclass: more aggressively minimize disk usage 2017-01-20 11:53:48 +00:00
rootfs-postcommands.bbclass rootfs-postcommands: add test for unsatisfied RRECOMMENDS 2017-09-21 16:55:57 +01:00
rootfs_deb.bbclass run-postinsts: simplify the logic of whether to install it to images 2017-03-14 14:42:17 +00:00
rootfs_ipk.bbclass run-postinsts: simplify the logic of whether to install it to images 2017-03-14 14:42:17 +00:00
rootfs_rpm.bbclass dnf: move the entire dnf/rpm4 stack to Python 3 2017-03-28 08:43:13 +01:00
rootfsdebugfiles.bbclass rootfsdebugfiles.bbclass: quick-and-dirty installation of additional files 2015-04-24 11:06:55 +01:00
sanity.bbclass sanity: explain where TMPDIR is if we're telling the user to delete it 2017-04-05 23:22:12 +01:00
scons.bbclass scons.bbclass: rework parameters for install task 2016-09-24 07:30:10 +01:00
setuptools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
setuptools3.bbclass python3-distribute: Upgrade to python3-setuptools 15.2 2015-06-08 17:34:04 +01:00
sign_ipk.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
sign_package_feed.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
sign_rpm.bbclass sign_rpm.bbclass: do not set/use RPM_GPG_PUBKEY 2017-03-23 13:19:49 +00:00
siteconfig.bbclass Switch to Recipe Specific Sysroots 2017-01-23 12:05:17 +00:00
siteinfo.bbclass arch-mips: Add MIPS 64r6 N32 tune 2016-12-22 08:50:16 +00:00
spdx.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
sstate.bbclass sstate: Ensure native/cross recipes have relocation of HOSTTOOLS_DIR 2017-05-18 13:17:44 +01:00
staging.bbclass staging: Fix a logic error which caused dependency removal 2017-09-11 22:15:59 +01:00
syslinux.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
systemd-boot.bbclass systemd-boot.bbclass: Add configuration data to secondary EFI partition 2017-07-07 09:19:08 +01:00
systemd.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
terminal.bbclass terminal: Use original PATH for terminals 2017-03-13 09:42:09 +00:00
testexport.bbclass testexport.bbclass: Migrate testexport to use new framework 2017-01-23 12:05:21 +00:00
testimage-auto.bbclass classes: Fix do_rootfs references 2016-01-11 23:26:29 +00:00
testimage.bbclass testimage.bbclass: add additional dependency 2017-04-21 08:22:09 +01:00
testsdk.bbclass testsdk: Fix lockfile patch 2017-03-03 12:21:09 +00:00
texinfo.bbclass texinfo.bbclass: use dummy dep for libtool-cross 2016-11-06 23:35:35 +00:00
tinderclient.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
toaster.bbclass toaster.bbclass: Ignore some dependencies in toaster_buildhistory_dump() 2017-08-31 17:57:11 +01:00
toolchain-scripts-base.bbclass toolchain-scripts-base: add base class for toolchain_create_sdk_version 2016-09-23 14:56:39 +01:00
toolchain-scripts.bbclass toolchain-scripts: remove CCACHE_PATH from environment script 2017-01-26 10:44:27 +00:00
typecheck.bbclass meta: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
uboot-config.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
uboot-extlinux-config.bbclass u-boot: add option to specify FDT argument in extlinux.conf 2017-03-13 09:43:14 +00:00
uboot-sign.bbclass classes: Fix "U-boot", use proper spelling of "U-Boot". 2017-03-17 16:53:05 +00:00
uninative.bbclass classes/uninative: set SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] properly 2017-04-11 18:10:17 +01:00
update-alternatives.bbclass update-alternatives.bbclass: Disable for mingw32 targets 2017-03-04 23:18:19 +00:00
update-rc.d.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
upstream-version-is-even.bbclass upstream-version-is-even.bbclass: exclude various alphas, betas, pre-releases etc. 2016-12-17 09:57:04 +00:00
useradd-staticids.bbclass useradd-statids.bbclass: Add support for -P / --clear-password option 2017-04-29 11:17:22 +01:00
useradd.bbclass useradd: remove preinst script referring to recipe sysroot 2017-05-11 16:56:00 +01:00
useradd_base.bbclass useradd_base: keep group if it still has users 2017-01-26 10:44:27 +00:00
utility-tasks.bbclass meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME) 2017-03-22 11:35:19 +00:00
utils.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
vala.bbclass vala.bbclass: remove pre-packaged vapigen.m4 from tarballs 2016-03-12 22:11:44 +00:00
waf.bbclass waf.bbclass: handle PACKAGECONFIG 2017-01-19 22:47:20 +00:00