File tree 3 files changed +4
-10
lines changed
3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 90
90
## Shell
91
91
92
92
## Internal
93
- * Fix error in ` OpamSystem.transform_patch ` - patches were only applied when debugging [ #6182 @dra27 regression since #3449 ]
94
93
95
94
## Internal: Windows
96
95
Original file line number Diff line number Diff line change @@ -1485,12 +1485,10 @@ let translate_patch ~dir orig corrected =
1485
1485
process_state_transition `Header state transforms |> List. rev
1486
1486
in
1487
1487
let transforms = fold_lines `Header 1 [] in
1488
- if transforms = [] then begin
1489
- log ~level: 1 " No patch translation needed for %s -> %s" orig corrected;
1488
+ if transforms = [] then
1490
1489
copy_file orig corrected
1491
- end else begin
1490
+ else begin
1492
1491
seek_in ch 0 ;
1493
- log ~level: 1 " Transforming patch %s to %s" orig corrected;
1494
1492
let ch_out =
1495
1493
try open_out_bin corrected
1496
1494
with Sys_error _ ->
@@ -1505,13 +1503,12 @@ let translate_patch ~dir orig corrected =
1505
1503
else
1506
1504
(id, (fun s -> s ^ " \r " ), strip 1 )
1507
1505
in
1508
- if OpamConsole. debug () then begin
1506
+ if OpamConsole. debug () then
1509
1507
let log_transform (first_line , last_line , add_cr ) =
1510
1508
let indicator = if add_cr then '+' else '-' in
1511
1509
log ~level: 3 " Transform %d-%d %c\\ r" first_line last_line indicator
1512
1510
in
1513
- List. iter log_transform transforms
1514
- end ;
1511
+ List. iter log_transform transforms;
1515
1512
let rec fold_lines n transforms =
1516
1513
match input_line ch with
1517
1514
| line ->
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ PATCH No CRLF adaptation necessary for b/test1
7
7
PATCH No CRLF adaptation necessary for b/test2
8
8
PATCH No CRLF adaptation necessary for b/test3
9
9
PATCH No CRLF adaptation necessary for b/will-null-file
10
- PATCH No patch translation needed for input.patch -> output.patch
11
10
Before patch state of c:
12
11
./always-crlf: CRLF
13
12
./always-lf: LF
@@ -45,7 +44,6 @@ PATCH No CRLF adaptation necessary for b/test1
45
44
PATCH Adding \r to patch chunks for b/test2
46
45
PATCH No CRLF adaptation necessary for b/test3
47
46
PATCH Adding \r to patch chunks for b/will-null-file
48
- PATCH Transforming patch input.patch to output.patch
49
47
PATCH Transform 32-36 +\r
50
48
PATCH Transform 62-67 +\r
51
49
PATCH Transform 82-87 +\r
You can’t perform that action at this time.
0 commit comments