Re: [PATCH] Set repo.cachedir to repo.basecachedir when reading configuration
Alexander Todorov <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
seth vidal wrote:
| On Wed, 2008-07-23 at 15:32 +0300, Alexander Todorov wrote:
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA512
|>
|
|> The failure was at:
|> yumdownloader -c $yumconf anaconda-runtime. The config files that come with
|
| Is revisor actually running this command or is it doing something like
| it internally?
|
It really does run yumdownloader.
|
| is there some reason why repo.dirSetup() never gets run?
|
wrt current code: I have no idea
wrt to patch: didn't know about that function. Thanks.
| You'll notice that it does:
| def dirSetup(self):
| """make the necessary dirs, if possible, raise on failure"""
|
| cachedir = os.path.join(self.basecachedir, self.id)
| pkgdir = os.path.join(cachedir, 'packages')
| hdrdir = os.path.join(cachedir, 'headers')
| self.setAttribute('cachedir', cachedir)
| self.setAttribute('pkgdir', pkgdir)
| self.setAttribute('hdrdir', hdrdir)
|
|
| There may be another bug here, but I don't think the patch you sent is
| the right way to fix it.
|
I agree. I've tried with dirSetup but although it sets up the local directories
and yumdownloader is able to fetch the mirror list it fails to download the
package. I'll continue looking into it.
Thanks for the hint,
Alexander.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
iD8DBQFIhypkhmd3WOiFct4RCnzGAJ0Z77LH3LJTu/EfVCjDhQDuvMV4CwCfUrTA
1kvxWSNSXDTEbAzWyRyeBqQ=
=bXm3
-----END PGP SIGNATURE-----