On Monday 14 August 2006 13:21, Paul Wise wrote:
> On Mon, 2006-08-14 at 13:00 +0300, George Danchev wrote:
> > > It would be nice if ara could search source packages too. Unless I'm
> > > missing something, it cannot do this yet.
> >
> > I see. The ara's idea is that you can search against _any_ field known to
> > the debian packaging system and you _always_ get binary package names as
> > result. For instance if you want to search against the Source: field, you
> > type:
>
> Hmm, ok. To clarify, I intended to search for packages that build-depend
> on cdbs and dpatch, but ara doesn't seem to support searching for
> build-depends (or any other field in the Sources lists, but not the
> Packages lists). For example:
>
> $ ara -q build-depends:debhelper
> (No packages).
> $ ara -q Standards-Version:/3.6.2/
> (No packages).
> $ ara -q Build-Depends:/debhelper/
> (No packages).
>
> Does ara support this? It doesn't seem to work for me.
>
> If it does, here is an example to list:
>
> ara -fields Source,Package -table 'build-depends:debhelper'
>         Print the source and binary package names of every package that
>         build-depends on debhelper in a table.

Ah, I now see what you are looking for! This is in fact caused by the fact 
that you ara is not configured to take into account 
/var/lib/apt/lists/*_Sources files, where the above mentioned fields belong 
to.

So cp /etc/ara.config $HOME/.ara/ and make sure you have added Sources files. 
Here is how it looks like:

ara {
  database {
    paths: [("/var/lib/dpkg/", "^available$");
            ("/var/lib/apt/lists/", "_Packages$");
            ("/var/lib/apt/lists/", "_Sources$");
            ("/var/lib/dpkg/", "^status$")]
  }
  commands {
    pager: "/etc/alternatives/pager"
    run_interactive_command: "/usr/bin/sudo ${COMMAND}"
    install: "/usr/bin/apt-get install ${PACKAGE}=${VERSION}"
    remove: "/usr/bin/apt-get remove ${PACKAGE}=${VERSION}"
    update: "/usr/bin/apt-get update"
    upgrade: "/usr/bin/apt-get upgrade"
    dist_upgrade: "/usr/bin/apt-get dist-upgrade"
    print: "/usr/bin/a2ps -q"
  }
}

You will be better served if you use ara interactively ara -i ;-)
Does that make sense ?

-- 
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to