Skip to content

Instantly share code, notes, and snippets.

@alfredopalhares
Created December 28, 2011 13:34
Show Gist options
  • Save alfredopalhares/1527952 to your computer and use it in GitHub Desktop.
Save alfredopalhares/1527952 to your computer and use it in GitHub Desktop.
Git coomit lockout
diff --git a/rubyists/freeswitch-git/PKGBUILD b/rubyists/freeswitch-git/PKGBUILD
index 319145a..652d821 100644
--- a/rubyists/freeswitch-git/PKGBUILD
+++ b/rubyists/freeswitch-git/PKGBUILD
@@ -15,6 +15,9 @@
# BUILD CONFIGURATION BEGINS #
+# Lock to specified refspec, this will assure you get pretested stuff
+_refspec="7c22661efbfbbf22577f15a1ed3923c7a102808e"
+
# ENABLE THIS IF YOU WANT ODBC IN THE CORE (uncomment it)
# You must have unixodbc installed or the build will fail
@@ -69,7 +72,7 @@ _concurrent="-j"
# #
pkgname=freeswitch-git
-pkgver=20111227
+pkgver=20111228-$_refspec
pkgrel=1
pkgdesc="Open Source soft switch (telephony engine) built from git"
arch=('i686' 'x86_64')
@@ -122,6 +125,8 @@ build() {
rm -rf "$srcdir/$_gitname-build"
cp -a "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
+ # Lock to the pretested commit
+ git reset --hard $_refspec
# BUILD BEGINS
msg "Bootstrapping..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment