# HG changeset patch # User Emmanuel Gil Peyrot # Date 1342470921 -7200 # Node ID 9fb71cf0b7d9685eb311280d98de4a019671d10c # Parent 93fda18142a8e74bd611e9fbc19fe46e09023f91 prototypes/hg: remove unneeded clone/pull operations. diff -r 93fda18142a8 -r 9fb71cf0b7d9 prototypes/PKGBUILD-hg.proto --- a/prototypes/PKGBUILD-hg.proto Sun Apr 17 22:32:31 2011 -0700 +++ b/prototypes/PKGBUILD-hg.proto Mon Jul 16 22:35:21 2012 +0200 @@ -31,22 +31,8 @@ _hgrepo=REPONAME build() { - cd "$srcdir" - msg "Connecting to Mercurial server...." - - if [ -d "$_hgrepo" ]]; then] - cd "$_hgrepo" - hg pull -u - msg "The local files are updated." - else - hg clone "$_hgroot" "$_hgrepo" - fi - - msg "Mercurial checkout done or server timeout" - msg "Starting build..." - rm -rf "$srcdir/$_hgrepo-build" - cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" + hg clone "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" cd "$srcdir/$_hgrepo-build" #