[pacman-dev] [GIT] The official pacman repository branch, maint, updated. v3.5.3-13-g4885a7f

Dan McGee dan at archlinux.org
Tue Aug 9 17:29:30 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official pacman repository".

The branch, maint has been updated
       via  4885a7fa3a54e9a81831916c7925b2996b695f50 (commit)
      from  67445334e71eaf6138561eee8e5561733a59fc69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4885a7fa3a54e9a81831916c7925b2996b695f50
Author: Dan McGee <dan at archlinux.org>
Date:   Mon Aug 8 18:18:09 2011 -0500

    Fix divide by zero when downloading zero length files
    
    If someone did a 'touch bogusrepo.db', we had the potential to throw a
    SIGFPE or divide by zero, given that the total file size was 0 and
    getting passed up to the pacman callback. Fix this so we get weird but
    sane output and don't blow up when downloading:
    
    :: Synchronizing package databases...
     core             35.7K  306.7K/s 00:00:00 [###################] 100%
     bogusrepo         0.0K    0.0K/s 00:00:00 [###################] 100%
    
    Exception as seen in gdb:
    
    Program received signal SIGFPE, Arithmetic exception.
    0x000000000040cc73 in cb_dl_progress (filename=0x619dfc "bogusrepo.db", file_xfered=0, file_total=0) at callback.c:584
    584             file_percent = (file_xfered * 100) / file_total;
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

-----------------------------------------------------------------------

Summary of changes:
 src/pacman/callback.c |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
The official pacman repository


More information about the pacman-dev mailing list