Skip to content

Commit

Permalink
Do not download all the repository for each build
Browse files Browse the repository at this point in the history
  • Loading branch information
athos-ribeiro committed Aug 8, 2018
1 parent d194bf1 commit f38ac16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion salt/files/trigger_clang_build
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
set -e
PKG=$1

rm -rf /root/Debian\:Unstable\:Clang
cd /root
if [ ! -d Debian\:Unstable\:Clang ]; then
osc co Debian:Unstable:Clang > /dev/null 2>&1
fi
cd Debian\:Unstable\:Clang/
osc up > /dev/null 2>&1

if [ "$PKG" == "obs-service-clang-build" ]; then
if ! osc ls Debian:Unstable:Clang obs-service-clang-build > /dev/null 2>&1; then
Expand Down

0 comments on commit f38ac16

Please sign in to comment.