[pacman-dev] [PATCH] proto: remove missed $srcdir redundancies

Allan McRae allan at archlinux.org
Mon Oct 14 01:57:24 EDT 2013


Most of the redundant "cd $srcdir" in the prototypes were removed in commit
5f80d7af.  Fix the rest.

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

diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto
index fb4ca7b..f341052 100644
--- a/proto/PKGBUILD-split.proto
+++ b/proto/PKGBUILD-split.proto
@@ -30,7 +30,7 @@ noextract=()
 md5sums=() #generate with 'makepkg -g'
 
 prepare() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd "$pkgname-$pkgver"
 	patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
 }
 
diff --git a/proto/PKGBUILD.proto b/proto/PKGBUILD.proto
index 1380a0f..8d26c81 100644
--- a/proto/PKGBUILD.proto
+++ b/proto/PKGBUILD.proto
@@ -30,7 +30,7 @@ noextract=()
 md5sums=() #generate with 'makepkg -g'
 
 prepare() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd "$pkgname-$pkgver"
 	patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
 }
 
-- 
1.8.4



More information about the pacman-dev mailing list