File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2177,6 +2177,11 @@ def _update_pkgindex_header(self, header):
2177
2177
header ["URI" ] = base_uri
2178
2178
else :
2179
2179
header .pop ("URI" , None )
2180
+ ttl = self .settings .get ("PORTAGE_BINHOST_TTL" )
2181
+ if ttl :
2182
+ header ["TTL" ] = ttl
2183
+ else :
2184
+ header .pop ("TTL" , None )
2180
2185
for k in (
2181
2186
list (self ._pkgindex_header_keys )
2182
2187
+ self .settings .get ("USE_EXPAND_IMPLICIT" , "" ).split ()
Original file line number Diff line number Diff line change @@ -1040,6 +1040,14 @@ use the URI header field as a base URI for fetching binary packages. If the URI
1040
1040
header field is not defined then the client will use its ${PORTAGE_BINHOST}
1041
1041
setting as the base URI.
1042
1042
.TP
1043
+ \fB PORTAGE_BINHOST_TTL \fR = \
1044
+ \fI "3600" \fR
1045
+ If this is set, its value will be used to define the TTL header in package
1046
+ index. The TTL header indicates to portage the duration in seconds after
1047
+ which the local package index should be considered potentially outdated. It is
1048
+ recommended to set this value to the minimal duration between binary package
1049
+ builds to avoid unnecessary network requests on the package index.
1050
+ .TP
1043
1051
.B PORTAGE_BINPKG_FORMAT
1044
1052
This variable sets default format used for binary packages. Possible values
1045
1053
are tar and rpm or both. It is very uncommon to set this and is likely
You can’t perform that action at this time.
0 commit comments