2 echo "############### tv-packaging.post ################"
4 # generate repo files for zypper
8 local filename=${3:-$2}
11 local prefix=${TZ_BUILD_VENDOR}-${TZ_BUILD_PROFILE}-${TZ_BUILD_REPO}
13 # remove double slashes if any
14 url=$(sed -e 's|/\+|/|g' -e 's|:/|://|' <<<$url)
16 cat >> /etc/zypp/repos.d/$prefix-${filename}.repo << EOF
18 name=$prefix-${reponame}
21 baseurl=${url}?ssl_verify=no
28 # source /etc/tizen-build.conf to get more infos about project, repos etc.
29 . /etc/tizen-build.conf
31 # adjust build_id if this scripts executes before the replacement in /etc/tizen-build.conf
32 TZ_BUILD_ID=$(echo $TZ_BUILD_ID | sed 's|@BUILD_ID[@]|@BUILD_ID@|')
35 genrepo ${TZ_BUILD_SNAPSHOT_URL}/${TZ_BUILD_ID}/repos/${TZ_BUILD_REPO}/packages snapshot snapshot 1
36 genrepo ${TZ_BUILD_SNAPSHOT_URL}/${TZ_BUILD_ID}/repos/${TZ_BUILD_REPO}/debug snapshot-debug snapshot 1
39 genrepo ${TZ_BUILD_SNAPSHOT_URL}/latest/repos/${TZ_BUILD_REPO}/packages update update 0
40 genrepo ${TZ_BUILD_SNAPSHOT_URL}/latest/repos/${TZ_BUILD_REPO}/debug update-debug update 0
43 genrepo ${TZ_BUILD_DAILY_URL}/latest/repos/${TZ_BUILD_REPO}/packages daily daily 0
44 genrepo ${TZ_BUILD_DAILY_URL}/latest/repos/${TZ_BUILD_REPO}/debug daily-debug daily 0
47 genrepo ${TZ_BUILD_WEEKLY_URL}/latest/repos/${TZ_BUILD_REPO}/packages weekly weekly 0
48 genrepo ${TZ_BUILD_WEEKLY_URL}/latest/repos/${TZ_BUILD_REPO}/debug weekly-debug weekly 0