1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

Fix mercurial complaining about directory already existing

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Sebastian Nowicki 2007-11-05 16:37:37 +09:00 committed by Dan McGee
parent 11f99e0685
commit cb04b3a5f3

View File

@ -1007,11 +1007,10 @@ devel_check() {
msg "$(gettext "Determining latest hg revision...")" msg "$(gettext "Determining latest hg revision...")"
if [ -d ./src/$_hgrepo ] ; then if [ -d ./src/$_hgrepo ] ; then
cd ./src/$_hgrepo cd ./src/$_hgrepo
make clean
hg pull hg pull
hg update hg update
else else
[[ ! -d ./src/$_hgrepo ]] && mkdir -p ./src/$_hgrepo [[ ! -d ./src/ ]] && mkdir ./src/
hg clone $_hgroot/$_hgrepo ./src/$_hgrepo hg clone $_hgroot/$_hgrepo ./src/$_hgrepo
cd ./src/$_hgrepo cd ./src/$_hgrepo
fi fi