Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 334321 - yumdownloader causes python tracebacks when run as user
yumdownloader causes python tracebacks when run as user
Product: Fedora
Classification: Fedora
Component: yum-utils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-10-16 10:13 EDT by Julian Sikorski
Modified: 2007-11-30 17:12 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-17 01:04:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Julian Sikorski 2007-10-16 10:13:58 EDT
Description of problem:

jsikorski@snowball cvs]$ yumdownloader --source
--enablerepo=dribble-development-source qmc2
Loading "skip-broken" plugin
Loading "fastestmirror" plugin
Loading "fedorakmod" plugin
Loading "refresh-updatesd" plugin
Traceback (most recent call last):
  File "/usr/bin/yumdownloader", line 215, in <module>
    util = YumDownloader()
  File "/usr/bin/yumdownloader", line 41, in __init__
  File "/usr/bin/yumdownloader", line 49, in main
    opts = self.doUtilConfigSetup()
  File "/usr/share/yum-cli/utils.py", line 69, in doUtilConfigSetup
    (opts, self.cmds) = self._parser.setupYumConfig()
  File "/usr/share/yum-cli/cli.py", line 1210, in setupYumConfig
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 345, in _getRepos
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 58, in doSetup
    repo.setup(self.ayum.conf.cache, self.ayum.mediagrabber)
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 715, in setup
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 472, in dirSetup
    "Cannot access repository dir %s" % dir
yum.Errors.RepoError: Cannot access repository dir

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
It used to work in the past even when the folders were not created. Anyway, some
kind of meaningful error message is welcome so that people will get informed
what the problem is.
Comment 1 Tim Lauridsen 2007-10-16 11:59:15 EDT
no need to add the --enablerepo=dribble-development-source option
using the '--source' option will auto enable the *-source repos for all enabled

it will work as normal user but using '--enablerepo' will fail.
Comment 2 Julian Sikorski 2007-10-16 12:11:44 EDT
Oh, so this must have changed - I remember having to enable yum repos manually.
Closed - Invalid?
Comment 3 Seth Vidal 2007-10-17 01:04:19 EDT
I've made a change to yumdownloader which will at least make the the error a bit
less ugly.

Note You need to log in before you can comment on or make changes to this bug.