diff options
author | Olivier Brunel <jjk@jjacky.com> | 2014-01-10 16:25:17 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-03-03 11:25:54 +1000 |
commit | bd3d1a17c2ec4297f05d092f0b93d025f811aa8a (patch) | |
tree | e141d631a1a45f08801a7c7b5f70f0db966e4078 /src | |
parent | 01cc55a1f47c99d3f296e710904b5f3fc31e0b1d (diff) | |
download | pacman-bd3d1a17c2ec4297f05d092f0b93d025f811aa8a.tar.xz |
Add events _PKGDOWNLOAD_{START, DONE, FAILED}
These will be emmitted when download a package file from a repository,
indicating that the download starts, and whether it was successfull or
not.
Note that when multiple servers are available, no event is emmitted when
switching to another server.
(This doesn't apply to alpm_fetch_pkgurl(), but since it is called by
the frontend, it shouldn't have problems knowing when the download
starts and when it ends.)
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index f512a5b4..2540b73c 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -302,6 +302,10 @@ void cb_event(alpm_event_t *event) case ALPM_EVENT_DISKSPACE_DONE: case ALPM_EVENT_RETRIEVE_DONE: case ALPM_EVENT_RETRIEVE_FAILED: + /* we can safely ignore those as well */ + case ALPM_EVENT_PKGDOWNLOAD_START: + case ALPM_EVENT_PKGDOWNLOAD_DONE: + case ALPM_EVENT_PKGDOWNLOAD_FAILED: /* nothing */ break; } |