From facb0c3e2e22f1fd3807f87842555b0cf5798550 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Fri, 23 Jan 2015 16:05:21 -0600 Subject: mlinux-feed-configs: use one feed config file --- recipes-core/mlinux/mlinux-feed-configs.bb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes-core/mlinux/mlinux-feed-configs.bb') diff --git a/recipes-core/mlinux/mlinux-feed-configs.bb b/recipes-core/mlinux/mlinux-feed-configs.bb index 2bd9bfc..4291f24 100644 --- a/recipes-core/mlinux/mlinux-feed-configs.bb +++ b/recipes-core/mlinux/mlinux-feed-configs.bb @@ -1,16 +1,16 @@ SUMMARY = "Configuration files for online package repositories aka feeds" -PR = "r0" +PR = "r1" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -DISTRO_FEED_PREFIX ?= "remote" -DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/" feeds="all ${TUNE_PKGARCH} ${MACHINE_ARCH}" +feed_file="mlinux-feed.conf" do_compile() { mkdir -p ${S}/${sysconfdir}/opkg + rm -f ${S}/${sysconfdir}/opkg/${feed_file} for feed in ${feeds}; do - echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf + echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" >> ${S}/${sysconfdir}/opkg/${feed_file} done } do_install () { @@ -20,4 +20,4 @@ do_install () { PACKAGE_ARCH = "${MACHINE_ARCH}" -CONFFILES_${PN} += '${@ " ".join( [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in "${feeds}".split() ] ) }' +CONFFILES_${PN} += "${sysconfdir}/opkg/${feed_file}" -- cgit v1.2.3