From 3869d0fb6abbf5ad0288bc79388ee88deda19dc5 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 25 Jul 2012 02:08:14 +0200 Subject: [PATCH] scripts/get: move mirror url to projects/*/options Signed-off-by: Stephan Raue --- projects/ATV/options | 1 + projects/Fusion/options | 1 + projects/Generic/options | 1 + projects/Generic_OSS/options | 1 + projects/ION/options | 1 + projects/Intel/options | 1 + projects/RPi/options | 1 + projects/Ultra/options | 1 + projects/Virtual/options | 1 + scripts/get | 3 +-- 10 files changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/ATV/options b/projects/ATV/options index 45cac37776..1b9dccb9fb 100755 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -329,6 +329,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/Fusion/options b/projects/Fusion/options index 7fd75a0d9f..58b2e9811f 100755 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -328,6 +328,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/Generic/options b/projects/Generic/options index a78ea58bee..43f09276e3 100755 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -328,6 +328,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/Generic_OSS/options b/projects/Generic_OSS/options index 2c51632764..765b2f700a 100755 --- a/projects/Generic_OSS/options +++ b/projects/Generic_OSS/options @@ -328,6 +328,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/ION/options b/projects/ION/options index 67b53edc8f..5b25faa918 100755 --- a/projects/ION/options +++ b/projects/ION/options @@ -328,6 +328,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/Intel/options b/projects/Intel/options index 6761fd2afb..668c97e813 100755 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -328,6 +328,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/RPi/options b/projects/RPi/options index 88f42fabed..dd4c4a90d2 100755 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -330,6 +330,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/Ultra/options b/projects/Ultra/options index 5bc577ed78..dd27a40b95 100755 --- a/projects/Ultra/options +++ b/projects/Ultra/options @@ -328,6 +328,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/projects/Virtual/options b/projects/Virtual/options index 6463b0babd..cd1a45b09b 100755 --- a/projects/Virtual/options +++ b/projects/Virtual/options @@ -324,6 +324,7 @@ COREBOOT="no" # Distribution Specific source location + DISTRO_MIRROR="http://sources.openelec.tv/mirror" DISTRO_SRC="http://sources.openelec.tv/$OPENELEC_VERSION" # Addon Server Url diff --git a/scripts/get b/scripts/get index d901d9114e..1a7f839584 100755 --- a/scripts/get +++ b/scripts/get @@ -35,10 +35,9 @@ if [ -n "$PKG_URL" ]; then URLS="$URLS `echo $PKG_URL | sed s%GEEXBOX_SRCS%$GEEXBOX_SRCS%`" for i in $URLS; do - OPENELEC_MIRROR="http://sources.openelec.tv/mirror" SOURCE_NAME="`basename $i`" PACKAGE="$SOURCES/$1/$SOURCE_NAME" - PACKAGE_MIRROR="$OPENELEC_MIRROR/$PKG_NAME/$SOURCE_NAME" + PACKAGE_MIRROR="$DISTRO_MIRROR/$PKG_NAME/$SOURCE_NAME" [ "$VERBOSE" != "yes" ] && WGET_OPT=-q WGET_CMD="wget --passive-ftp --no-check-certificate -c $WGET_OPT -P $SOURCES/$1"