summaryrefslogtreecommitdiffstats
path: root/scripts/firstrun/20-fedpkg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/firstrun/20-fedpkg')
-rw-r--r--scripts/firstrun/20-fedpkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/firstrun/20-fedpkg b/scripts/firstrun/20-fedpkg
index 01fdaba..3cb349b 100644
--- a/scripts/firstrun/20-fedpkg
+++ b/scripts/firstrun/20-fedpkg
@@ -22,8 +22,10 @@ for pkg in ${POI}; do
${PKGCMD} clone ${bname}
cd ${bname}
branch=$(${PKGCMD} switch-branch --list | tail -n2 | head -n1 | cut -d/ -f2)
- ${PKGCMD} switch-branch ${branch}
- ${PKGCMD} prep # incl. downloading source
+ if [ "$(git rev-parse --abbrev-ref HEAD)" != "${BRANCH}" ]; then
+ ${PKGCMD} switch-branch ${branch}
+ ${PKGCMD} prep # incl. downloading source
+ fi
popd >/dev/null
done