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

22 lines
294 B
Bash

#! /bin/sh
set -e
export LC_ALL=C
osc up
rm -f _service\:*
rm -f *.tar.xz
osc service lr
SD=$PWD
tmp=$(mktemp -d)
cd $tmp
tar xf $SD/openQA-*.tar.xz
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