Re: Treating 'not found' packages as errors

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

 



On Wed, 2008-04-23 at 18:11 +0200, Anders Blomdell wrote:

> Don't know yet, I have problems with changing the cachedir location, this naive
> code extracted and combined from the wiki:
> #!/usr/bin/python
> 
> import yum, os, sys
> # setup base objects
> my = yum.YumBase()
> # someplace you can write to as your user
> my.conf.basecachedir = '/tmp/whereever'
> if not os.path.exists(my.conf.basecachedir):
>     os.makedirs(my.conf.basecachedir)
> my.conf.cache = 0

after you do the above add:

my.repos.setCacheDir(my.conf.basecachedir)


see if that takes care of it.

-sv


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux