[arch-commits] Commit in readline/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Wed Jun 16 00:51:23 EDT 2010


    Date: Wednesday, June 16, 2010 @ 00:51:23
  Author: allan
Revision: 82724

make PKGBUILD namcap friendly

Modified:
  readline/trunk/PKGBUILD

----------+
 PKGBUILD |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-16 04:46:04 UTC (rev 82723)
+++ PKGBUILD	2010-06-16 04:51:23 UTC (rev 82724)
@@ -15,8 +15,8 @@
 source=(http://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz
         inputrc)
 if [ $_patchlevel -gt 00 ]; then
-    for p in $(seq -w 01 $_patchlevel); do
-        source=(${source[@]} http://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-$p)
+    for (( p=1; p<=$_patchlevel; p++ )); do
+        source=(${source[@]} http://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-$(printf "%03d" $p))
     done
 fi
 md5sums=('fc2f7e714fe792db1ce6ddc4c9fb4ef3'



More information about the arch-commits mailing list