Your message dated Mon, 19 Mar 2012 10:53:10 +0800
with message-id
<CAN3veRc2nFOOcEZ==vA8xhcYJgvf=7r3eafkb2kikqy0q44...@mail.gmail.com>
and subject line aptitude: Please support more than two arguments in ?and and
?or
has caused the Debian Bug report #494188,
regarding aptitude: Please support more than two arguments in ?and and ?or
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
494188: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494188
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: aptitude
Version: 0.4.11.9-1
Severity: wishlist
If I want to write a three-condition "and" or "or", I have to write it
as nested binary conditions, such as ?and(?cond1, ?and(?cond2,
?cond3)). I'd rather write that as ?and(?cond1, ?cond2, ?cond3).
Please consider supporting an arbitrary number of arguments in ?and
and ?or.
- Josh Triplett
-- Package-specific info:
aptitude 0.4.11.9 compiled at Aug 4 2008 01:26:18
Compiler: g++ 4.3.1
Compiled against:
apt version 4.6.0
NCurses version 5.6
libsigc++ version: 2.0.18
Ept support enabled.
Current library versions:
NCurses version: ncurses 5.6.20080804
cwidget version: 0.5.12
Apt version: 4.6.0
linux-vdso.so.1 => (0x00007fff823fe000)
libapt-pkg-libc6.7-6.so.4.6 => /usr/lib/libapt-pkg-libc6.7-6.so.4.6
(0x00007fbf79e84000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007fbf79c39000)
libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007fbf79a34000)
libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007fbf79761000)
libept.so.0 => /usr/lib/libept.so.0 (0x00007fbf794e8000)
libxapian.so.15 => /usr/lib/libxapian.so.15 (0x00007fbf7917e000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007fbf78f67000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fbf78d4b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fbf78a3f000)
libm.so.6 => /lib/libm.so.6 (0x00007fbf787bc000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fbf785a5000)
libc.so.6 => /lib/libc.so.6 (0x00007fbf78252000)
libutil.so.1 => /lib/libutil.so.1 (0x00007fbf7804f000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fbf77e4b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbf7a144000)
Terminal: xterm
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:
aptitude linkage:
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages aptitude depends on:
ii apt [libapt-pkg-libc6. 0.7.14+b1 Advanced front-end for dpkg
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcwidget3 0.5.12-1 high-level terminal interface libr
ii libept0 0.5.22 High-level library for managing De
ii libgcc1 1:4.3.1-8 GCC support library
ii libncursesw5 5.6+20080804-1 shared libraries for terminal hand
ii libsigc++-2.0-0c2a 2.0.18-2 type-safe Signal Framework for C++
ii libstdc++6 4.3.1-8 The GNU Standard C++ Library v3
ii libxapian15 1.0.7-2 Search engine library
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages aptitude recommends:
pn aptitude-doc-en | aptitude-do <none> (no description available)
pn libparse-debianchangelog-perl <none> (no description available)
Versions of packages aptitude suggests:
pn debtags <none> (no description available)
pn tasksel <none> (no description available)
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 0.5.0-1
Josh Triplett <[email protected]> wrote:
> If I want to write a three-condition "and" or "or", I have to write it
> as nested binary conditions, such as ?and(?cond1, ?and(?cond2,
> ?cond3)). I'd rather write that as ?and(?cond1, ?cond2, ?cond3).
> Please consider supporting an arbitrary number of arguments in ?and
> and ?or.
Hi
While working on some new stuff I noticed that this has been implemented.
$ aptitude search '?or(~nasdf,~nzxcv,~nqwer,~nemacs23$)'
p cl-asdf
i A emacs23
$ aptitude search '?and(~nlinux,~nimage,~n3,~n2,~i)'
i A linux-image-3.2.0-1-686-pae
Turns out this was done as part of a larger rewrite shortly after this
feature request.
Though there is no mention of expanding the syntax of these two search
operators, these commits are were the change was introduced:
commit e566174f3bf1fe7ed9d86db29eebeb8904ca9a76
Author: Daniel Burrows <[email protected]>
Date: Wed Sep 3 13:51:17 2008 -0700
Port the parser to generate the new pattern structure (untested).
commit 99ffa86229344212e8b5b801b357c26d42a60788
Author: Daniel Burrows <[email protected]>
Date: Wed Sep 3 10:50:26 2008 -0700
Start working on a rewrite of the matching code: implemented the
core structure to represent search patterns.
The matching code has been due for a rewrite for a long time. There
are two goals in this rewrite:
...
--- End Message ---
_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel