Skip to content

Commit 0f0a7df

Browse files
anphel31dmcilvaney
andauthored
[cherry-pick to 3.0] Add priorities to local repos (#10074)
Co-authored-by: Daniel McIlvaney <damcilva@microsoft.com>
1 parent 4ca9366 commit 0f0a7df

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
1+
# Start with the toolchain repo as highest priority...
12
[toolchain-repo]
23
name=Local Toolchain Repo (build/toolchain_rpms/)
34
baseurl=file:///toolchainrpms
45
enabled=1
56
gpgcheck=0
67
skip_if_unavailable=1
78
sslverify=0
9+
priority=1
810

11+
# Next highest should be existing locally built packages...
912
[local-repo]
1013
name=Local Build Repo (out/RPMS)
1114
baseurl=file:///localrpms
1215
enabled=1
1316
gpgcheck=0
1417
skip_if_unavailable=1
1518
sslverify=0
19+
priority=2
1620

21+
# Then packages we have already cached from upstream...
1722
[upstream-cache-repo]
1823
name=Cache Repo for upstream RPMs (build/rpm_cache/cache)
1924
baseurl=file:///upstream-cached-rpms
2025
enabled=1
2126
gpgcheck=0
2227
skip_if_unavailable=1
2328
sslverify=0
29+
priority=3
30+
31+
# Unless disabled, finally fall back to the upstream repos for any missing packages.

0 commit comments

Comments
 (0)