Skip to content

Commit 59a3747

Browse files
committed
[dist] Add message about reusing dist
Now that we reuse the dists as expected, we should be clear about when we reuse a dist or when we build a new one...otherwise we will get confusing messages in our build logs
1 parent a5a3829 commit 59a3747

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pythonforandroid/toolchain.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,18 @@ def wrapper_func(self, args):
162162
self.clean_builds(args)
163163
if dist.needs_build:
164164
if dist.folder_exists(): # possible if the dist is being replaced
165+
info_notify('A dist with requested name exists [{}], but we '
166+
'need to rebuild it because requirements '
167+
'changed'.format(dist.name))
165168
dist.delete()
166-
info_notify('No dist exists that meets your requirements, '
167-
'so one will be built.')
169+
else:
170+
info_notify('No dist exists that meets your requirements, '
171+
'so one will be built with this name: '
172+
'{}'.format(dist.name))
168173
build_dist_from_args(ctx, dist, args)
174+
else:
175+
info_notify('Reusing a dist that meets your requirements: '
176+
'{}'.format(dist.name))
169177
func(self, args)
170178
return wrapper_func
171179

0 commit comments

Comments
 (0)