[arch-commits] Commit in expac/trunk (0001-fix-target-processing.patch PKGBUILD)

Dave Reisner dreisner at archlinux.org
Tue Nov 25 15:53:02 UTC 2014


    Date: Tuesday, November 25, 2014 @ 16:53:02
  Author: dreisner
Revision: 227089

upgpkg: expac 4-2

- backport fix for busted target processing

Added:
  expac/trunk/0001-fix-target-processing.patch
Modified:
  expac/trunk/PKGBUILD

----------------------------------+
 0001-fix-target-processing.patch |   27 +++++++++++++++++++++++++++
 PKGBUILD                         |   10 +++++++---
 2 files changed, 34 insertions(+), 3 deletions(-)

Added: 0001-fix-target-processing.patch
===================================================================
--- 0001-fix-target-processing.patch	                        (rev 0)
+++ 0001-fix-target-processing.patch	2014-11-25 15:53:02 UTC (rev 227089)
@@ -0,0 +1,27 @@
+From ea25d7e51c2236e739aef2718499781dd37ef53d Mon Sep 17 00:00:00 2001
+From: Dave Reisner <dreisner at archlinux.org>
+Date: Tue, 25 Nov 2014 10:50:19 -0500
+Subject: [PATCH] fix target processing
+
+lack of targets is not an error.
+---
+ expac.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/expac.c b/expac.c
+index 5a11a59..d89e072 100644
+--- a/expac.c
++++ b/expac.c
+@@ -848,9 +848,6 @@ int main(int argc, char *argv[])
+   }
+ 
+   targets = process_targets(argc, argv);
+-  if(targets == NULL) {
+-    return 1;
+-  }
+ 
+   r = expac_new(&expac, opt_config_file);
+   if(r < 0) {
+-- 
+2.1.3
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-25 12:44:14 UTC (rev 227088)
+++ PKGBUILD	2014-11-25 15:53:02 UTC (rev 227089)
@@ -3,7 +3,7 @@
 
 pkgname=expac
 pkgver=4
-pkgrel=1
+pkgrel=2
 pkgdesc="pacman database extraction utility"
 arch=('i686' 'x86_64')
 url="http://github.com/falconindy/expac"
@@ -10,13 +10,17 @@
 license=('GPL')
 depends=('pacman')
 makedepends=('perl')
-source=("http://code.falconindy.com/archive/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
+source=("http://code.falconindy.com/archive/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
+        '0001-fix-target-processing.patch')
 md5sums=('5104ad808155e8d2d381d9282caf7bae'
-         'SKIP')
+         'SKIP'
+         '80433a259a4f5996520f42217b1896b8')
 
 prepare() {
   cd "$pkgname-$pkgver"
 
+  patch -Np1 <../0001-fix-target-processing.patch
+
   sed '/\*\//q' expac.c >LICENSE
 }
 



More information about the arch-commits mailing list