diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-02-06 02:32:56 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2006-02-06 02:32:56 +0000 |
commit | 255eeefd0cbe44062a0c6be57c0c12f431f13543 (patch) | |
tree | dd892a0211c8b47c94612ba04698790269256033 | |
parent | 924c6788f05715272b80284b7956be2f2d51cb65 (diff) | |
download | quilt-255eeefd0cbe44062a0c6be57c0c12f431f13543.tar.gz |
- bin/patch-wrapper.in: First fix ;)
-rwxr-xr-x | bin/patch-wrapper.in | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/patch-wrapper.in b/bin/patch-wrapper.in index 4d6b108..d41f42e 100755 --- a/bin/patch-wrapper.in +++ b/bin/patch-wrapper.in @@ -37,12 +37,11 @@ backup_files() { sub(/^patching file /, "", file) } /^Hunk #[0-9]* / \ - { if (! file in backup) - print file > "/dev/stderr" - backup[file] = 1 - #print "ln "dir"/"file" "prefix file suffix \ - # > "/dev/stderr" - system("ln "dir"/"file" "prefix file suffix) + { if (!(file in backup)) { + backup[file] = 1 + #print "ln -f "dir"/"file" "prefix file suffix > "/dev/stderr" + system("ln -f "dir"/"file" "prefix file suffix) + } } { if (!silent) print @@ -60,7 +59,7 @@ backup_files() { do dest=$opt_prefix${file#$dir/}$opt_suffix mkdir -p $(dirname "$dest") - ln $file $dest + ln -f $file $dest done fi } |