[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: From emsource -b to emsandbox



On Wed, 2008-03-19 at 17:34 +0000, Neil Williams wrote:
> To use the cache, view the apt options that apt-cross uses by specifying
> -v -v -v to apt-cross so that it shows you the config string.

e.g. on my system:
 -o Apt::Architecture=arm -o APT::Get::List-Cleanup=off -o
Apt::Install-Recommends=false -o Dir=/home/neil/.apt-cross -o
Dir::Etc=/home/neil/.apt-cross -o Dir::Etc::SourceList=sources.unstable
-o Dir::State=unstable -o
Dir::State::Status=/home/neil/.apt-cross/status -o Dir::Cache=unstable

> Pass the apt options to apt-cache ... showsrc $package

apt-cache -o Apt::Architecture=arm -o APT::Get::List-Cleanup=off -o
Apt::Install-Recommends=false -o Dir=/home/neil/.apt-cross -o
Dir::Etc=/home/neil/.apt-cross -o Dir::Etc::SourceList=sources.unstable
-o Dir::State=unstable -o
Dir::State::Status=/home/neil/.apt-cross/status -o Dir::Cache=unstable
showsrc $package

Yes, it's a mouthful but all the data is available. You can indeed use
the apt-cross cache for any query that apt can handle using the main
cache.

In fact, that is how apt-cross gets the cache in the first place - it
passes this config string to apt-get $foo update.

The rest of it is wrappers to create the relevant directories in
userspace so that sudo is no longer needed.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: