Bug#121132: Regex vs glob for pinning (was Re: Bug#121132: [patch] Proposed regex pinning feature)

2009-03-30 Thread Duncan Gibb
Josef Kufner wrote: DG> So you can write, for example: DG> Package: /.*openoffice\.org.*/ JAK> I would like to have something like this instead: JAK> Package: openoffice.org-* JAK> This is also similar to what seems to be available JAK> for versions already (according to apt_preferences(5)):

Bug#121132: [patch] Proposed regex pinning feature

2009-03-28 Thread Josef Kufner
Julian Andres Klode píše v So 28. 03. 2009 v 19:53 +0100: > On Sat, Mar 28, 2009 at 06:19:49PM +, Duncan Gibb wrote: > > So you can write, for example: > > > > Package: /.*openoffice\.org.*/ > I would like to have something like this instead: > > Package: openoffice.org-* It would be nic

Bug#121132: [patch] Proposed regex pinning feature

2009-03-28 Thread Julian Andres Klode
On Sat, Mar 28, 2009 at 06:19:49PM +, Duncan Gibb wrote: > Hi > > The attached patch adds a very basic and crufty extension to apt policy > such that pinnings can use regex matching. If the name given on the > "Package:" line in the apt preference file begins and ends with '/', it > is interp

Bug#121132: [patch] Proposed regex pinning feature

2009-03-28 Thread Duncan Gibb
Hi The attached patch adds a very basic and crufty extension to apt policy such that pinnings can use regex matching. If the name given on the "Package:" line in the apt preference file begins and ends with '/', it is interpreted as a regular expression (with ^ and $ pre- and post-fixed for a sem