Mailinglist Archive: zypp-devel (149 mails)

< Previous Next >
Re: [zypp-devel] using libzypp as user and also in /$MYROOT (libzypp-bindings / libzypp)
  • From: Michael Matz <matz@xxxxxxx>
  • Date: Mon, 1 Sep 2008 17:07:53 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0809011705450.6093@xxxxxxxxxxxxx>
Hi,

On Mon, 1 Sep 2008, Jan-Simon Möller wrote:

I'm using libzypp / libzypp-bindings-python to query packages available in an
http-rpmmd-repo.

I started with

initializeTarget(zypp.Pathname("/tmp/a"))

created my repoinfo, but then

mymanager.addRepository(myrepoinfo)

fails because it wants to write to /etc/zypp.
How can I change this behaviour ?
AFAIK /etc/zypp is stored in configPath. But found no "setConfigPath".
Did I miss something? Or is this not possible with libzypp ?

Create a new zypp.conf (replace at least configdir with a user-writable
dir). Point the zypp apps to your own zypp.conf with the ZYPP_CONF
environment variable:

% ZYPP_CONF=/tmp/zypp.conf build-dir/myapp


Ciao,
Michael.
< Previous Next >
References