[pacman-dev] [PATCH 2/4] makepkg: svn: update existing sources in srcdir without removing them first.

Lukáš Jirkovský l.jirkovsky at gmail.com
Mon Dec 9 15:31:21 EST 2013


This matches the behaviour with non-VCS sources. It also allows incremental
builds when subversion is used to obtain sources.

Signed-off-by: Lukáš Jirkovský <l.jirkovsky at gmail.com>
---
 scripts/makepkg.sh.in | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index aeb231a..84183b0 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -747,12 +747,8 @@ extract_svn() {
 	repo=${repo%%#*}
 
 	msg2 "$(gettext "Creating working copy of %s %s repo...")" "${repo}" "svn"
-	pushd "$srcdir" &>/dev/null
-	rm -rf "${dir##*/}"
 
-	cp -a "$dir" .
-
-	popd &>/dev/null
+	cp -au "$dir" "$srcdir"
 }
 
 download_sources() {
-- 
1.8.5.1



More information about the pacman-dev mailing list