Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

enable build timestamp maximization #449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ prune_to_best_version_sortcmp(const void *ap, const void *bp, void *dp)
}
/* sort by repository sub-prio (installed repo handled above) */
r = (sb->repo ? sb->repo->subpriority : 0) - (sa->repo ? sa->repo->subpriority : 0);
#ifdef ENABLE_CONDA
if (r == 0)
{
Repodata* ra = repo_last_repodata(sa->repo);
Repodata* rb = repo_last_repodata(sb->repo);

unsigned long long bta = repodata_lookup_num(ra, a, SOLVABLE_BUILDTIME, 0ull);
unsigned long long btb = repodata_lookup_num(rb, b, SOLVABLE_BUILDTIME, 0ull);
r = bta - btb;
}
#endif
if (r)
return r;
/* no idea about the order, sort by id */
Expand Down