mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
Fix mercurial complaining about directory already existing
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
11f99e0685
commit
cb04b3a5f3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user