tags 298734 + patch
block 603269 by 298734
thanks
Attached patch contains a group policy named `site' for grouping
packages according to their origin site (server).
- origin site is obtained from PkgFileIterator::Site()
- packages available from multiple sites appear *once* under each
---[Example]
sources.list:
# Will provide 3 distinct versions of iceweasel.
deb http://ftp.au.debian.org/debian squeeze main
deb http://ftp.au.debian.org/debian sid main
deb http://mozilla.debian.net/ experimental iceweasel-beta
package view:
# With group policy "status,site" and view limit "^iceweasel".
--\ Not Installed Packages (91)
--\ ftp.au.debian.org (89)
p U iceweasel
p U iceweasel-dbg
[...]
--\ mozilla.debian.net (2)
p U iceweasel
p U iceweasel-dbg
---
apt_preferences refers to this data using the keyword `origin',
however, I have decided to use `site' for the group policy as I intend
to now work on an equivilent search term and `?origin' is already in
use.
Using the keyword `origin' for this data seems more descriptive to me.
I think that the group policy could be `origin' and the search term
`?origin-site', any opinions on this?
With attached patch, this layout is achieved by inserting `site'
before `section' in your group policy:
"task,status,site,section(subdirs,passthrough),section(topdir)"
Note that this request is a dupe of #244434.
I consider the patch to be fairly complete, however opinions and
naming suggestions are welcome.
Aptitude is an excellent tool :)