Re: setting root in python script

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


On Thu, 2020-04-30 at 16:28 +0200, Miroslav Suchý wrote:
> Hi,
> I have this python code:
> import rpm
> trans = rpm.TransactionSet()
> packages = [trans.dbMatch()]

 You probably want to set the go faster flags (see

> But now, I want to support --root option in my script and allow to
> use different root.

trans = rpm.TransactionSet(root)

Rpm-list mailing list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux