From 436a24ee09d3a5ea2425c0a967854be340339a4a Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 23 Dec 2010 12:10:00 +0100 Subject: [PATCH] autoupdate: add repo.conf for releases Signed-off-by: Stephan Raue --- .../autoupdate/config/{repo.conf => repo.conf.devel} | 0 packages/tools/autoupdate/config/repo.conf.release | 8 ++++++++ packages/tools/autoupdate/install | 8 ++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) rename packages/tools/autoupdate/config/{repo.conf => repo.conf.devel} (100%) create mode 100644 packages/tools/autoupdate/config/repo.conf.release diff --git a/packages/tools/autoupdate/config/repo.conf b/packages/tools/autoupdate/config/repo.conf.devel similarity index 100% rename from packages/tools/autoupdate/config/repo.conf rename to packages/tools/autoupdate/config/repo.conf.devel diff --git a/packages/tools/autoupdate/config/repo.conf.release b/packages/tools/autoupdate/config/repo.conf.release new file mode 100644 index 0000000000..f1eb3998e0 --- /dev/null +++ b/packages/tools/autoupdate/config/repo.conf.release @@ -0,0 +1,8 @@ +# Location of repo + UPDATEURL="http://releases.openelec.tv" + +# Setup Download tool (wget/scp) + DL_METHOD="wget" + +# Keyfile to use (with scp method) + KEYFILE="" diff --git a/packages/tools/autoupdate/install b/packages/tools/autoupdate/install index 73951987ac..4a96ada2cf 100755 --- a/packages/tools/autoupdate/install +++ b/packages/tools/autoupdate/install @@ -3,7 +3,7 @@ . config/options $1 mkdir -p $INSTALL/usr/bin - if [ "$DEVTOOLS" = "yes" ]; then + if [ "$OPENELEC_VERSION" = devel ]; then cp $PKG_DIR/scripts/autoupdate.devel $INSTALL/usr/bin/autoupdate else cp $PKG_DIR/scripts/autoupdate.release $INSTALL/usr/bin/autoupdate @@ -13,7 +13,11 @@ mkdir -p $INSTALL/etc if [ -f $PROJECT_DIR/$PROJECT/autoupdate/repo.conf ]; then cp $PROJECT_DIR/$PROJECT/autoupdate/repo.conf $INSTALL/etc else - cp $PKG_DIR/config/repo.conf $INSTALL/etc + if [ "$OPENELEC_VERSION" = devel ]; then + cp $PKG_DIR/config/repo.conf.devel $INSTALL/etc/repo.conf + else + cp $PKG_DIR/config/repo.conf.release $INSTALL/etc/repo.conf + fi fi if [ -f $PROJECT_DIR/$PROJECT/autoupdate/update.key.db ]; then