summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLukáš Jirkovský <l.jirkovsky@gmail.com>2013-12-09 20:31:21 +0000
committerAllan McRae <allan@archlinux.org>2014-11-17 14:56:17 +1000
commit4c1f41a7c18355542d9d7f5c58ac5a026a71bb4d (patch)
treee82e41ff2c55fe754fb00c38c489d063d7ac8256 /scripts
parent0d249949345e69fc1728df236569d1153582244c (diff)
downloadpacman-4c1f41a7c18355542d9d7f5c58ac5a026a71bb4d.tar.xz
makepkg: svn: update existing sources in srcdir without removing them first.
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@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 6acd9f5e..4e9da4bb 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -769,12 +769,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"
}
get_all_sources() {