In CVS, don't call vcs_status if update is used already.

As CVS lists changes during the 'update' call, there's no reason to call
it twice. Thus, call vcs_status only if -d is used.
This commit is contained in:
Michał Górny 2010-10-30 11:44:54 +02:00
parent 849ccc9cf7
commit cee1dac95f

View File

@ -441,7 +441,14 @@ main() {
fi
fi
vcs_status
if [ -z "${noupdate}" ]; then
sayv "Updating the repository..."
vcs_update
fi
if [ ${SC_VCS} != cvs -o -n "${noupdate}" ]; then
vcs_status
fi
echo
# Since commit 32264c3, repoman supports '--ask' option,
@ -475,11 +482,6 @@ main() {
confirm
fi
if [ -z "${noupdate}" ]; then
sayv "Updating the repository..."
vcs_update
fi
# In CVS, we don't prepend the package name to the commit message.
[ ${SC_VCS} = cvs ] && noprepend=