summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2017-10-23 13:49:08 +0200
committerMaciej Wereski <m.wereski@partner.samsung.com>2017-10-23 13:49:08 +0200
commit644cf1d51d545077aaacb4e3aba8b9fad33a1eca (patch)
tree830401ab30269ad38ae479c7efbb26dd75868f9c /scripts
parentd1713dbf3409ab1b36d1b65348eb9410e17e600b (diff)
downloadmeta-644cf1d51d545077aaacb4e3aba8b9fad33a1eca.tar.gz
meta-644cf1d51d545077aaacb4e3aba8b9fad33a1eca.tar.bz2
meta-644cf1d51d545077aaacb4e3aba8b9fad33a1eca.zip
Change-Id: Ie249378dc5f101d0e600568b4c393be03066595b Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common-packaging.post49
1 files changed, 0 insertions, 49 deletions
diff --git a/scripts/common-packaging.post b/scripts/common-packaging.post
deleted file mode 100644
index 11943b1..0000000
--- a/scripts/common-packaging.post
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-echo "############### common-packaging.post ################"
-
-# generate repo files for zypper
-function genrepo() {
- local url=$1
- local reponame=$2
- local filename=${3:-$2}
- local enabled=${4:-0}
-
- local prefix=${TZ_BUILD_VENDOR}-${TZ_BUILD_PROFILE}-${TZ_BUILD_REPO}
-
- # remove double slashes if any
- url=$(sed -e 's|/\+|/|g' -e 's|:/|://|' <<<$url)
-
- cat >> /etc/zypp/repos.d/$prefix-${filename}.repo << EOF
-[$prefix-${reponame}]
-name=$prefix-${reponame}
-enabled=$enabled
-autorefresh=0
-baseurl=${url}?ssl_verify=no
-type=rpm-md
-gpgcheck=0
-
-EOF
-}
-
-# source /etc/tizen-build.conf to get more infos about project, repos etc.
-. /etc/tizen-build.conf
-
-# adjust build_id if this scripts executes before the replacement in /etc/tizen-build.conf
-TZ_BUILD_ID=$(echo $TZ_BUILD_ID | sed 's|@BUILD_ID[@]|@BUILD_ID@|')
-
-# snapshot repo
-genrepo ${TZ_BUILD_SNAPSHOT_URL}/${TZ_BUILD_ID}/repos/${TZ_BUILD_REPO}/packages snapshot snapshot 1
-genrepo ${TZ_BUILD_SNAPSHOT_URL}/${TZ_BUILD_ID}/repos/${TZ_BUILD_REPO}/debug snapshot-debug snapshot 1
-
-# latest repo
-genrepo ${TZ_BUILD_SNAPSHOT_URL}/latest/repos/${TZ_BUILD_REPO}/packages update update 0
-genrepo ${TZ_BUILD_SNAPSHOT_URL}/latest/repos/${TZ_BUILD_REPO}/debug update-debug update 0
-
-# daily repo
-genrepo ${TZ_BUILD_DAILY_URL}/latest/repos/${TZ_BUILD_REPO}/packages daily daily 0
-genrepo ${TZ_BUILD_DAILY_URL}/latest/repos/${TZ_BUILD_REPO}/debug daily-debug daily 0
-
-# weekly repo
-genrepo ${TZ_BUILD_WEEKLY_URL}/latest/repos/${TZ_BUILD_REPO}/packages weekly weekly 0
-genrepo ${TZ_BUILD_WEEKLY_URL}/latest/repos/${TZ_BUILD_REPO}/debug weekly-debug weekly 0
-