[pacman-dev] [PATCH] Remove unnecessary error catching from PKGBUILD protos

Allan McRae allan at archlinux.org
Fri May 28 21:18:30 EDT 2010


The use of "|| return 1" is no longer necessary in PKGBUILDs.

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 PKGBUILD-split.proto |    2 +-
 PKGBUILD.proto       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD-split.proto b/PKGBUILD-split.proto
index 484cb1a..d7f1de1 100644
--- a/PKGBUILD-split.proto
+++ b/PKGBUILD-split.proto
@@ -29,7 +29,7 @@ md5sums=() #generate with 'makepkg -g'
 build() {
   cd "$srcdir/$pkgbase-$pkgver"
   ./configure --prefix=/usr
-  make || return 1
+  make
 }
 
 package_pkg1() {
diff --git a/PKGBUILD.proto b/PKGBUILD.proto
index b4d9c94..ebbdf0a 100644
--- a/PKGBUILD.proto
+++ b/PKGBUILD.proto
@@ -30,7 +30,7 @@ build() {
   cd "$srcdir/$pkgname-$pkgver"
 
   ./configure --prefix=/usr
-  make || return 1
+  make
 }
 
 package() {
-- 
1.7.1



More information about the pacman-dev mailing list