Checking meta instead of hardcode project letter to identify use_bc
This commit is contained in:
parent
279a545186
commit
8f8f9d5f53
@ -147,21 +147,21 @@ function start_creating() {
|
||||
|
||||
for prj in $projects; do
|
||||
l=$(echo $prj | sed 's/^openSUSE.\+[:]Staging/Staging/g' | cut -d: -f2)
|
||||
use_bc="staging_$target:$l-bc-$arch"
|
||||
if [ "$l" = "A" -o "$l" = "B" ]; then
|
||||
use_bc=
|
||||
fi
|
||||
# special case for Gcc6
|
||||
if [ "$l" = "Gcc6" ]; then
|
||||
use_bc=
|
||||
fi
|
||||
if [[ $prj =~ ^openSUSE.+:[A-Z]$ ]] || [[ $prj =~ ^openSUSE.+:Gcc6$ ]]; then
|
||||
echo "Checking $target:$l-$arch"
|
||||
|
||||
meta=$(mktemp)
|
||||
use_bc="staging_$target:$l-bc-$arch"
|
||||
osc meta prj $prj > $meta
|
||||
if grep -q 0-Bootstrap $meta ; then
|
||||
use_bc=
|
||||
fi
|
||||
if [ -n "$use_bc" ]; then
|
||||
sync_prj openSUSE:$target:Staging:$l/bootstrap_copy "staging_$target:$l-bc-$arch" $arch
|
||||
fi
|
||||
sync_prj openSUSE:$target:Staging:$l/standard staging_$target:$l-$arch $arch
|
||||
regenerate_pl "openSUSE:$target:Staging:$l" $target 1 $use_bc staging_$target:$l-$arch $arch
|
||||
rm $meta
|
||||
fi
|
||||
|
||||
if [[ $prj =~ :DVD ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user