Discussion:
Bug#1085265: local-apt-repository: use caching
Add Reply
mike
2024-10-17 13:40:01 UTC
Reply
Permalink
Package: local-apt-repository
Version: 0.9
Severity: normal
X-Debbugs-Cc: ***@gmail.com

Dear Maintainer,


If you have a bunch of packages, regeneration takes very long because it rebuilds everything from scratch. It should be using caching. Something like this:

apt-ftparchive packages --db cache.db ../../../$DEBS > $REPO/Packages
apt-ftparchive sources --db cache.db ../../../$DEBS > $REPO/Sources

I'm assuming you'll put it in /var/cache/local-apt-repository
mike
2024-10-17 18:20:01 UTC
Reply
Permalink
Package: local-apt-repository
Version: 0.9
Followup-For: Bug #1085265
X-Debbugs-Cc: ***@gmail.com

Dear Maintainer,

i encoutered more issues. Because i'm using mv, the files are relativelly old, so the if statement with the stamp isn't triggered. But with caching this can be removed. Then also force can be removed. And also the stamp. So now, i changed it to run greedely and rely on caching.

in attachment what i'm using.

the cache probably needs to be moved (/var/cache) and also i don't know if the cache will just grow uncontrollably. apt-ftparchive has a clean command, but it expects a config file. Maybe it's an oversite there.
Loading...