apturl should not update cache on each call.

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
cli

Research direction

No files or tests are named. Start by locating the apturl/captain entry point that updates the APT cache and trace how repeated installations invoke it. Done means repeated package installations within the chosen delay avoid unnecessary cache updates while installations still work correctly.

Written by the indexing model from the issue text.

Description

When installing packages via apturl, the apt cache is updated for every single call, each time an apturl button is clicked. While for the installation of a single package this is totally okay, this behavior makes the installation of several packages unnecessarily tedious because you always have to wait a few seconds for the cache update to be finished before the actual download and installation happen.

Since it is not very likely that within this short time frame significant changes happened in the repos that justify a permanent update, it would be much more convenient to wait maybe 30 seconds or so after the previous installation has finished before updating the cache again, so this does not interfere with further installations. Or let the user set this delay in a configuration file for apturl/captain.

Thank you!

Dominant language
Python
Stars
24
Forks
9
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/captain

All issues in linuxmint/captain

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.