File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def copy_file( # noqa: C901
118118 if update and not newer (src , dst ):
119119 if verbose >= 1 :
120120 log .debug ("not copying %s (output up-to-date)" , src )
121- return (dst , 0 )
121+ return (dst , False )
122122
123123 try :
124124 action = _copy_action [link ]
@@ -132,7 +132,7 @@ def copy_file( # noqa: C901
132132 log .info ("%s %s -> %s" , action , src , dst )
133133
134134 if dry_run :
135- return (dst , 1 )
135+ return (dst , True )
136136
137137 # If linking (hard or symbolic), use the appropriate system call
138138 # (Unix only, of course, but that's the caller's responsibility)
@@ -146,11 +146,11 @@ def copy_file( # noqa: C901
146146 # even under Unix, see issue #8876).
147147 pass
148148 else :
149- return (dst , 1 )
149+ return (dst , True )
150150 elif link == 'sym' :
151151 if not (os .path .exists (dst ) and os .path .samefile (src , dst )):
152152 os .symlink (src , dst )
153- return (dst , 1 )
153+ return (dst , True )
154154
155155 # Otherwise (non-Mac, not linking), copy the file contents and
156156 # (optionally) copy the times and mode.
@@ -165,7 +165,7 @@ def copy_file( # noqa: C901
165165 if preserve_mode :
166166 os .chmod (dst , S_IMODE (st [ST_MODE ]))
167167
168- return (dst , 1 )
168+ return (dst , True )
169169
170170
171171# XXX I suspect this is Unix-specific -- need porting help!
You can’t perform that action at this time.
0 commit comments