[Aptitude-devel] [PATCH] Add by-site group policy

Daniel Hartwig mandyke at gmail.com
Wed Jul 13 15:58:30 UTC 2011


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?


On 9 Mar 2005, Michelle Konzack <linux4michelle at freenet.de> wrote:
> I have more then 20 Servers in my /etc/apt/sources.list and I like
> to see aptitude seperating the menu by servers like:
>
> --\ Installed Packages
>   --\ ftp.de.debian.org
>     --- admin
>     --- base
>     ...
>   --\ security.debian.org
>     --- admin
>     --- base
>     ...

With attached patch, this layout is achieved by inserting `site'
before `section' in your group policy:

  "task,status,site,section(subdirs,passthrough),section(topdir)"

> And third whis is, if only ONE Flaveour of "main", "contrib" or
> "non-free" is used hide it...

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 :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-by-site-group-policy.patch
Type: text/x-patch
Size: 4394 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20110713/af6ba1fc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: document-by-site-group-policy.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20110713/af6ba1fc/attachment-0001.bin>


More information about the Aptitude-devel mailing list