File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -107,20 +107,20 @@ async def _patch(
107
107
destination_content = await file .read ()
108
108
async with aiofiles .open (patch ) as file :
109
109
patch_content = await file .read ()
110
- if destination_content != base_content :
111
- LOGGER .warning (
112
- "Destination file '%s' is different than it's base '%s'." ,
113
- destination ,
114
- base ,
115
- )
116
- return False
117
110
if destination_content == patch_content :
118
111
LOGGER .debug (
119
112
"Destination file '%s' is identical to the patch file '%s'." ,
120
113
destination ,
121
114
patch ,
122
115
)
123
116
return False
117
+ if destination_content != base_content :
118
+ LOGGER .warning (
119
+ "Destination file '%s' is different than it's base '%s'." ,
120
+ destination ,
121
+ base ,
122
+ )
123
+ return False
124
124
async with aiofiles .open (destination , "w" ) as file :
125
125
await file .write (patch_content )
126
126
LOGGER .warning (
You can’t perform that action at this time.
0 commit comments