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
Updates all suites if any interesting package exists #35
Comments
|
Eh... 1) is already implemented - backends just need to provide a method to check whether they have changes. To store information about that, the LMDB cache can be used. How the backend determines the "needs update" state is up to the backend, it could even be the archive kit just telling asgen to regenerate the data at the next best oportunity. Furthermore, the icon tarballs should build reproducibly, timestamps etc. are disabled and I followed the recommendations for reproducible tarballs with libarchive - still there seem to be differences even on zero-change builds, and I haven't yet pinned down why that happens (all input is sorted). Suite tracking would be hard with LMDB, at least if we want to keep the fast query times. |
|
Nice, I didn't notice that one yet. It's even implemented for Debian. But Huh, this has never been hit so maybe the bug is that this doesn't work properly somehow. |
|
Yes, maybe something changes the files' mtime even if there are no changes? |
|
Urgh, of course it does if you re-download the file every time. |
|
I'll first look into making downloading set the mtime properly - this is not destroyed by HTTP so should be possible in theory. |
|
From asgen From wget |
|
I'd bet curl can do that somehow. |
|
I can get the last modified time from the headers, but dlang doesn't seem to have a function to parse that into something I can make a |
|
Can I add https://github.com/JackStouffer/date-parser as a submodule? |
|
Meh, that depends on some |
|
Any 3rd-party deps are fine, as long as we can easily package them (= upstream uses Automake/CMake/Meson or accepts patches for that, since using dub is a pain, or is a source-only module) Doesn't https://dlang.org/phobos/std_datetime.html#.parseRFC822DateTime work, or is this a non-RFC822 date? |
|
Actually it is, I didn't see that one at first - just trying to fix a small tz issue now then will see if it works before PRing later |
…t file This only works for HTTP, not FTP. Should hopefully fix asgen considering suites as changed each time, which I think happened because the Packages file got the current mtime, so it was always considered to be newer. Fixes ximion#35
…t file This only works for HTTP, not FTP. Should hopefully fix asgen considering suites as changed each time, which I think happened because the Packages file got the current mtime, so it was always considered to be newer. Fixes ximion#35
|
Yeahhh, this works |
…t file This only works for HTTP, not FTP. Should hopefully fix asgen considering suites as changed each time, which I think happened because the Packages file got the current mtime, so it was always considered to be newer. Fixes ximion#35
Because there's no suite tracking,
seedContentsDatacauses the output for all suites to be regenerated if there are any interesting packages at all, even if those haven't changed.This is a problem because then every client will end up redownloading the output
Componentsandiconsfiles with every archive update even if nothing has changed. I'm a bit worried about deploying asgen with this unfixed.Can we think of a way to avoid this happening? Like
Packages?)forget).Any thoughts/ideas?
The text was updated successfully, but these errors were encountered: