On Tue, May 09, 2006 at 12:27:59AM +0200, Martin Quinson wrote:
> [EMAIL PROTECTED]:/tmp/q$ quilt push
> Application de patch.patch
> can't find file to patch at input line 5
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Index: subdir/file.txt
> |===================================================================
> |--- subdir/file.txt    2006-05-08 16:14:26.000000000 -0400
> |+++ subdir/file.txt    2006-05-08 16:14:31.000000000 -0400
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> Le patch patch.patch ne s'applique pas proprement (forcez l'application avec
> -f)
> [EMAIL PROTECTED]:/tmp/q$ 
> 
> ==> works for me. Even if I cannot get it speak C, it says that I can force
> the application with -f. If I do, it tells me that the patch is empty.

[EMAIL PROTECTED]:~/q% tar xzf ~/nevyn-home/quilt-test.tgz 
[EMAIL PROTECTED]:~/q% cd q 
[EMAIL PROTECTED]:~/q/q% quilt push
<spins, control-c does not work>

24708 pts/24   Ss     0:00 /bin/zsh
24724 pts/24   S+     0:00  \_ /bin/bash /usr/bin/quilt push
24725 pts/24   S+     0:00      \_ bash -c . /usr/share/quilt/push quilt push
24751 pts/24   S+     0:00          \_ bash -c . /usr/share/quilt/push quilt 
push
24764 pts/24   R+     0:51          |   \_ /bin/bash 
/usr/share/quilt/scripts/backup-files -s -r -B .pc/patch.patch/ -
24753 pts/24   S+     0:00          \_ bash -c . /usr/share/quilt/push quilt 
push
24755 pts/24   S+     0:00          |   \_ awk ????/^patching file / { filename 
= substr($0, 15) }????{ gsub(/ -- saving rejects to (file )?.*/,????       " -- 
rejects in file " filename) }????{ print }????
24758 pts/24   S+     0:00          \_ bash -c . /usr/share/quilt/push quilt 
push
24759 pts/24   S+     0:00              \_ cat

It is definitely the shell script that is spinning.  C-c kills awk, and
cat, but not pid 24764.


+ ECHO=echo
+ declare -a FILELIST
+ progname=/usr/share/quilt/scripts/backup-files
+ '[' 5 -gt 0 ']'
+ case $1 in
+ ECHO=:
+ shift
+ '[' 4 -gt 0 ']'
+ case $1 in
+ OPT_WHAT=restore
+ shift
+ '[' 3 -gt 0 ']'
+ case $1 in
+ OPT_PREFIX=.pc/patch.patch/
+ shift
+ shift
+ '[' 1 -gt 0 ']'
+ case $1 in
+ FILELIST=($1)
+ shift
+ '[' 0 -gt 0 ']'
+ '[' -z .pc/patch.patch/ ']'
+ '[' 1 == 0 ']'
+ '[' -n '' ']'
+ I=0
+ '[' 0 -lt 1 ']'
+ case "${FILELIST[$I]}" in
+ path=.pc/patch.patch
+ '[' -n .pc/patch.patch ']'
+ '[' -d .pc/patch.patch ']'
+ continue
+ '[' 0 -lt 1 ']'
+ case "${FILELIST[$I]}" in
+ path=.pc/patch.patch
+ '[' -n .pc/patch.patch ']'
+ '[' -d .pc/patch.patch ']'
+ continue

I think it's pretty clear what's wrong with the code - you can't "||
continue" in an open-coded for loop, or you miss the loop increment.
I have no idea why it would pass for you and not for me.

-- 
Daniel Jacobowitz
CodeSourcery


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to