SHA256
1
0
forked from pool/openQA
openQA/update-cache.sh

25 lines
393 B
Bash

#! /bin/sh
set -e
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
osc up
rm -f _service\:*
rm -f *.tar *.cpio
osc service lr
# special call for tar buildtime service
osc service lr tar
SD=$PWD
tmp=$(mktemp -d)
cd $tmp
tar xf $SD/openQA-*.tar
cd openQA-*
script/generate-packed-assets
tar cvjf cache.tar.xz assets/cache assets/assetpack.db
mv cache.tar.xz $SD/cache.txz
cd $SD
osc up