Opened 6 years ago

Last modified 6 years ago

#14267 new bug

repocache-2 is too large

Reported by: pulkomandy Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Everytime you run pkgman, two files are downloaded from the repos to check that they are up to date. The second one (repocache-2) is now close to 1MB for the haikuports repo, it is annoying when you just want to download a small executable of a few hundred kilobytes.

We should:

  • Reduce the side of the file
  • Avoid to download it every time (shouldn't repocache-1 tell us when it is already up to date)
  • Maybe use "if changed since" HTTP headers to avoid redownloading when there is no change?

Change History (4)

comment:1 by waddlesplash, 6 years ago

Duplicate of #13161?

comment:2 by pulkomandy, 6 years ago

Mostly, but I disagree on relying on the user to add a command line switch. This should be automatic: if the repo did not change, we should not download this.

comment:3 by waddlesplash, 6 years ago

This should be automatic: if the repo did not change, we should not download this.

Except this is already the case? We download the SHA256sum of the file first, check against the existing one, and then only redownload if it has changed. So how is this a problem?

comment:4 by pulkomandy, 6 years ago

I don't know, but it is re-downloaded everytime I run a command.

Note: See TracTickets for help on using tickets.