Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17494 - [pkgtools] pkgfile -u could be smarter

Attached to Project: Community Packages
Opened by Gavin Bisesi (Daenyth) - Sunday, 13 December 2009, 22:00 GMT
Last edited by Gavin Bisesi (Daenyth) - Saturday, 25 September 2010, 14:41 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Gavin Bisesi (Daenyth)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It should ideally check for the last update time of the repos in question, as well as providing an override. (like pacman -Sy vs -Syy). It wastes time and bandwidth for users and mirrors.

I don't know how to do this.
This task depends upon

Closed by  Gavin Bisesi (Daenyth)
Saturday, 25 September 2010, 14:41 GMT
Reason for closing:  Upstream
Additional comments about closing:  http://github.com/Daenyth/pkgtools/issue s/issue/7
Comment by Gavin Bisesi (Daenyth) - Sunday, 13 December 2009, 22:31 GMT
Thanks yitz: changed=$(date -d "$(wget -S --spider "$url" 2>&1 | awk '$1 == "Last-Modified:" {for (i = 2; i <= NF; i++ ) printf("%s ", $i)}')" +%s)
Comment by Gavin Bisesi (Daenyth) - Sunday, 13 December 2009, 22:35 GMT
curl -z also.
Comment by Chris Brannon (cmb) - Friday, 08 January 2010, 10:10 GMT
It is too bad that pkgfile -u can't just use rsync, like abs does.
How often do the file lists really change? Not much, I'd wager.
Comment by Gavin Bisesi (Daenyth) - Friday, 08 January 2010, 13:01 GMT
Usually it's done by a cron job a few times a day I think. It would be changed with the same frequency as db updates really...

Can I use rsync to fetch from http?
Comment by Chris Brannon (cmb) - Friday, 08 January 2010, 15:16 GMT
rsync cannot use HTTP.
It would need an rsync server somewhere, like abs uses.

As for updates to the data, I meant that the data itself does not change
very frequently. Yes, the lists may be fetched one or more times per day,
but for the most part, each fetch is going to grab a lot of data that
did not change since the last fetch. That's why rsync would be a win.
Have a look at the timestamps on
/var/cache/pkgtools/lists/*/*/files

Comment by Gavin Bisesi (Daenyth) - Friday, 08 January 2010, 15:45 GMT
True. The mirrors would have to provide rsync though.
Comment by Gavin Bisesi (Daenyth) - Saturday, 06 March 2010, 16:34 GMT
pkgfile should also extract only what's needed as rebase does

Loading...