Bug#702150: dctrl-tools: -X should match on NAME (VERSION) too
Package: dctrl-tools Version: 2.22.2 Severity: important Hi, First, this cannot be always reproduced just because »apt-cache dumpavail« doesn't give the same content on successive executions. I'm using this command to add package pins, for example for python2.7: apt-cache dumpavail | grep-dctrl -S $SPKG -sPackage -X By using '-X' some times not all packages are selected: Package: python2.7 Source: python2.7 (2.7.3-7) The above output was obtained by executing: apt-cache dumpavail | grep -B1 -E (Package|Source): python2.7 I thing that »grep-dctrl -X« should match on NAME (VERSION) too. Cheers -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (100, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=ro_RO.utf8, LC_CTYPE=ro_RO.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dctrl-tools depends on: ii libc6 2.13-38 dctrl-tools recommends no packages. Versions of packages dctrl-tools suggests: ii apt 0.9.7.7 ii debtags 1.10.2 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#702150: [Dctrl-tools-devel] Bug#702150: dctrl-tools: -X should match on NAME (VERSION) too
Control: severity -1 wishlist On Sun, Mar 03, 2013 at 10:59:29AM +0200, Teodor wrote: I'm using this command to add package pins, for example for python2.7: apt-cache dumpavail | grep-dctrl -S $SPKG -sPackage -X By using '-X' some times not all packages are selected: Package: python2.7 Source: python2.7 (2.7.3-7) This is the expected result, hence downgrading to wishlist. -X is supposed to check if the field in question (in this case, Source, or if it is missing, Package) contains the string (in this case $PKG) and nothing else. I thing that »grep-dctrl -X« should match on NAME (VERSION) too. I think changing the defined meaning of -X that radically is out of the question. Providing another flag to do what you are reqesting is possible, though the question of exactly what it *should* match is not clear. Can you give me a regexp, for example? -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#702150: [Dctrl-tools-devel] Bug#702150: dctrl-tools: -X should match on NAME (VERSION) too
2013/3/3 Antti-Juhani Kaijanaho antti-juh...@kaijanaho.fi By using '-X' some times not all packages are selected: Package: python2.7 Source: python2.7 (2.7.3-7) This is the expected result, hence downgrading to wishlist. -X is supposed to check if the field in question (in this case, Source, or if it is missing, Package) contains the string (in this case $PKG) and nothing else. This is not expected at all. You see that the name in question has an exact match? I thing that »grep-dctrl -X« should match on NAME (VERSION) too. I think changing the defined meaning of -X that radically is out of the question. Providing another flag to do what you are reqesting is possible, though the question of exactly what it *should* match is not clear. Can you give me a regexp, for example? This is not a radical change. A regex could be found, the question is would you accept it. Cheers -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#702150: [Dctrl-tools-devel] Bug#702150: Bug#702150: dctrl-tools: -X should match on NAME (VERSION) too
On Sun, Mar 03, 2013 at 07:11:07PM +0200, Teodor MICU wrote: 2013/3/3 Antti-Juhani Kaijanaho antti-juh...@kaijanaho.fi By using '-X' some times not all packages are selected: Package: python2.7 Source: python2.7 (2.7.3-7) This is the expected result, hence downgrading to wishlist. -X is supposed to check if the field in question (in this case, Source, or if it is missing, Package) contains the string (in this case $PKG) and nothing else. This is not expected at all. You see that the name in question has an exact match? The Source field, which is being looked at here, contains more than the name. Hence it's not an exact match. There is a substring match, but -X disallows it. I thing that »grep-dctrl -X« should match on NAME (VERSION) too. I think changing the defined meaning of -X that radically is out of the question. Providing another flag to do what you are reqesting is possible, though the question of exactly what it *should* match is not clear. Can you give me a regexp, for example? This is not a radical change. Changing -X in this way would be radical. A regex could be found, the question is would you accept it. Depends on the regex. -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org