Skip to content
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

chromium: Improve update script and update to latest versions. #108

Merged
merged 2 commits into from
Aug 22, 2012

Conversation

aszlig
Copy link
Member

@aszlig aszlig commented Aug 17, 2012

Previously, we had a single hash of the whole version response from omahaproxy.

Unfortunately the dev version is released quite frequently, so the hash is of no use at all (we could rather directly fetch rather than executing the script, because it will fetch all channels anyway).

This pull request adds two methods of caching:

  • First of all, if a perticular version/channel is already in the previous version of the sources.nix file, don't download it again.
  • And the second method is to check if the current sha256 is already downloaded and reads the corresponding sha256 from the lookup table.

So, this should really help to avoid flooding the download servers and to not stress impatient users too much.

aszlig added 2 commits August 17, 2012 12:57
Until this commit we had a single hash of the whole version response from
omahaproxy. This worked well for not updating unnecessarily but only until one
single channel has a new version available.

Unfortunately the dev version is released quite frequently, so the hash is of no
use at all (we could rather directly fetch everything everytime we execute the
script).

This led to this commit, which adds two methods of caching:

First of all, if a perticular version/channel is already in the previous version
of the sources.nix file, don't download it again.

And the second method is to check if the current sha256 is already downloaded
and reads the corresponding sha256 from the lookup table.

So, this should really help to avoid flooding the download servers and to not
stress impatient users too much.
This removes the now obsolete VHASH line in sources.nix aswell.
@shlevy shlevy merged commit 4393fff into NixOS:master Aug 22, 2012
@primeos primeos mentioned this pull request Aug 19, 2018
12 tasks
ethancedwards8 pushed a commit to ethancedwards8/nixpkgs that referenced this pull request Apr 2, 2021
system.defaults.dock: add `show-recents` option
modulitos pushed a commit to modulitos/nixpkgs that referenced this pull request Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants