Minor improvement to clone script
This commit is contained in:
parent
d151464362
commit
dd7d886b57
1 changed files with 2 additions and 1 deletions
|
|
@ -7,10 +7,11 @@ module=$(basename $script_location)
|
|||
mkdir -p rpms
|
||||
pushd rpms 2>&1 >/dev/null
|
||||
|
||||
rm -f need_branch
|
||||
for pkg in $(grep -B1 --no-group-separator buildorder ../$module.yaml | grep -v buildorder | sed -e 's/:$//') ; do
|
||||
if [ ! -d "$pkg" ] ; then
|
||||
fedpkg clone $pkg
|
||||
(cd $pkg ; fedpkg switch-branch master ; fedpkg switch-branch $module)
|
||||
(cd $pkg ; if ! fedpkg switch-branch $module ; then echo $pkg >> ../need_branch ; fi)
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue