summaryrefslogtreecommitdiff
path: root/scripts/common-packaging.post
blob: 338ce82ee5b3a4c6b8da46f2a25f0eb57b4dd318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
############### common-packaging.post ################

rm -rf /root/.zypp

# was: rpm.post
rm -f /var/lib/rpm/__db*
rpmdb --rebuilddb

# generate repo files for zypper
function genrepo() {
	local reponame=$1
	local url=$2

cat >> /etc/zypp/repos.d/${reponame}.repo << EOF
[${reponame}]
name=${reponame}
enabled=1
autorefresh=0
baseurl=
baseurl=${url}?ssl_verify=no
type=rpm-md
gpgcheck=0
EOF
}

arch=ia32
[ -d /usr/lib64 ] && arch=x86_64

genrepo common-wayland-${arch} http://download.tizen.org/snapshots/tizen/common/common-wayland-${arch}/latest/repos/common/${arch}/packages/