openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
405 stars 110 forks source link

[feature request] show estimated time (ETA) based on download speed #281

Open ghost opened 5 years ago

ghost commented 5 years ago

This is pretty simple and handy feature, was surprised when I couldn't find any previous issues about it

The size of individual packages and total download size is already calculated in addition to download speed, is there a technical reason behind not implementing it?

like this: <package name>..........<60%>====[\ (2 MiB/s)][ETA 54s]

mlandres commented 5 years ago

Looks like up to no nobody missed it :)

YipingRuan commented 5 years ago

I will try to add something like this: image

But currently the interface doesn't contain enough information virtual void dwnldProgress(const Url & uri, int value = -1, long rate = -1) /**

notes:

// src/output/OutNormal.cc
void OutNormal::dwnldProgress( const Url & uri, int value, long rate, long remaining_size)
{
    // ...
  if ( rate > 0 )
  {
    outstr.rhs << " (" << ByteCount(rate) << "/s)";
    outstr.rhs << "(ETA 01m54s)" << remaining_size;
  }
}
mlandres commented 5 years ago

Provided the expected files size is currently available within the libzypp media backend at all, changing the callback to ship it would require a binary incompatible change to libzypp. As we're about to rewrite the media backend, we don't like to put more effort into the old API. If zypper does not know the file size, the ETA must wait.

Kyren223 commented 3 months ago

Any updates on this? coming from Ubuntu and really missing this feature