Skip to content

Commit

Permalink
Only print info about cache'd recipe revision being newer when it tru…
Browse files Browse the repository at this point in the history
…ly is (conan-io#16275)

* Print info about cache rev being newer only when it truly is

* Don't expect current install to be newer than cached one in test_update_binaries

* fix

---------

Co-authored-by: memsharded <james@conan.io>
  • Loading branch information
2 people authored and franramirez688 committed May 29, 2024
1 parent 40b5ffc commit cbbe9ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conans/client/graph/graph_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ def _evaluate_in_cache(self, cache_latest_prev, node, remotes, update):
# The final data is the cache one, not the server one
node.binary_remote = None
node.prev = cache_latest_prev.revision
if cache_time > node.pref_timestamp:
output.info("Current package revision is newer than the remote one")
node.pref_timestamp = cache_time
output.info("Current package revision is newer than the remote one")
if not node.binary:
node.binary = BINARY_CACHE
node.binary_remote = None
Expand Down

0 comments on commit cbbe9ee

Please sign in to comment.