It helps if we assign the correct value to version
authorAndrew Gaffney <agaffney@gentoo.org>
Tue, 11 Mar 2008 19:06:58 +0000 (19:06 +0000)
committerAndrew Gaffney <agaffney@gentoo.org>
Tue, 11 Mar 2008 19:06:58 +0000 (19:06 +0000)
Send output of patch command to /dev/null
Show a message saying we're patching if there are patches for the util

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@619 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
gen_compile.sh

index 5011c65e07be7b9526899f410d968784b1324db8..5de2b972152ee181e5d7abaf62bdbaf2fcaa695b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  11 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh:
+  It helps if we assign the correct value to version
+  Send output of patch command to /dev/null
+  Show a message saying we're patching if there are patches for the util
+
   11 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
   +patches/busybox/1.7.4/1.7.4-static-error.diff:
   Add busybox patch to remove error about compiling statically
index 33377e029128ef45edb0fb8e8c36afd1abf4adbe..d4b7c8ded2c21c61d8e5a8b3ca93e6c485c8366c 100644 (file)
@@ -184,16 +184,17 @@ reset_args()
 
 apply_patches() {
        util=$1
-       version=$1
+       version=$2
 
        if [ -d "${GK_SHARE}/patches/${util}/${version}" ]
        then
+               print_info 1 "${util}: >> Applying patches..."
                for i in "${GK_SHARE}/patches/${util}/${version}/*"
                do
                        patch_success=0
                        for j in `seq 0 5`
                        do
-                               patch -p${j} -f < "${i}"
+                               patch -p${j} --backup-if-mismatch -f < "${i}" >/dev/null
                                if [ $? = 0 ]
                                then
                                        patch_success=1