Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#18769 - compute package download size outside _alpm_sync_prepare
Attached to Project:
Pacman
Opened by Jonathan Conder (PirateJonno) - Sunday, 21 March 2010, 00:54 GMT
Last edited by Allan McRae (Allan) - Sunday, 16 May 2010, 04:57 GMT
Opened by Jonathan Conder (PirateJonno) - Sunday, 21 March 2010, 00:54 GMT
Last edited by Allan McRae (Allan) - Sunday, 16 May 2010, 04:57 GMT
|
DetailsCurrently alpm_package_download_size returns 0 unless a sync transaction has already been prepared. This of course works fine for pacman itself, but for the frontend I am writing, I need to be able to display the download size before a transaction has been prepared (or even created). Would it be possible to allow for this in the alpm_package_download_size function? My idea would be to add another infolevel and only compute the download size when the value is not already known. I would be happy to write a patch for this if you agree.
|
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 16 May 2010, 04:57 GMT
Reason for closing: Implemented
Additional comments about closing: git commit df99495
Sunday, 16 May 2010, 04:57 GMT
Reason for closing: Implemented
Additional comments about closing: git commit df99495
01:17 < shining^> DigitalKiwi: download size is computed at sync_prepare stage
01:18 < DigitalKiwi> hrm
01:18 < shining^> I suppose thats not what you wanted
01:19 < DigitalKiwi> in trans_prepare is that?
01:20 < shining^> yup
01:21 < DigitalKiwi> hurr shit that's annoying :(
01:21 < shining^> patch welcome :D
01:22 < shining^> Nagy mentioned that problem to me at least 2 or 3 times in last year
01:23 < DigitalKiwi> well at least now I know what is wrong
01:23 < DigitalKiwi> thanks
01:25 < shining^>pacman-dev@archlinux.org/msg01319.html"> http://www.mail-archive.com/pacman-dev@archlinux.org/msg01319.html
01:25 < phrik> Title: Re: [pacman-dev] Move -Sw to front-end (at www.mail-archive.com)
alpm_fetch_pkgurl is used for a "pacman -U http://my.packages.com/pkg.tar.gz" type operation.
Patches welcome as usual on the ML. :)
Somehow the MIME types got messed up (I think) so I've uploaded the patch here too:
http://omploader.org/vM3h2aQ/pm.patch