-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GH-1038) add support for check-valid-until
configuration
#1042
(GH-1038) add support for check-valid-until
configuration
#1042
Conversation
@fitzy101 Could you have a look at this and see if it was what you had in mind? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @david22swan apologies for the delayed response. Thanks for looking at this configuration option. The current implementation doesn't quite address the problem, as the syntax isn't correct for setting the check-valid-until
option inline.
If I manually set the value like in the commit, you can see the apt update
command fails.
~ # cat /etc/apt/sources.list.d/debian-security-snapshot.list
deb [Acquire::Check-Valid-Until=false] https://snapshot.debian.org/archive/debian-security/20220612T175238Z/ bullseye-security main
~ # apt update
# ...
Hit:4 https://snapshot.debian.org/archive/debian-security/20220612T175238Z bullseye-security InRelease
Reading package lists... Done
E: Release file for https://snapshot.debian.org/archive/debian-security/20220612T175238Z/dists/bullseye-security/InRelease is expired (invalid since 44d 8h 26min 50s). Updates for this repository will not be applied.
# ...
The format should be [check-valid-until=no]
, which you can see in the example below.
~ # cat /etc/apt/sources.list.d/debian-security-snapshot.list
deb [check-valid-until=no] https://snapshot.debian.org/archive/debian-security/20220612T175238Z/ bullseye-security main
~ # apt update
#...
Hit:4 https://snapshot.debian.org/archive/debian-security/20220612T175238Z bullseye-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
Add's additional configuration to `apt::source` to allow the user to specify whether or not to check if the repository that they are accessing has a valid release ate. Defaults to `True`
54468f3
to
3d3620c
Compare
@fitzy101 That's the update made, thanks for getting back to me on it |
That’s great, thanks. |
Add's additional configuration to
apt::source
to allow the user to specify whether or not to check if the repository that they are accessing has a valid release ate.Defaults to
True