Bug 448902 - Yum-tmprepo doesn't work
Yum-tmprepo doesn't work
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum-utils (Show other bugs)
8
All Linux
low Severity low
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-29 08:58 EDT by Michał Bentkowski
Modified: 2008-05-30 08:19 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-05-30 08:19:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Michał Bentkowski 2008-05-29 08:58:07 EDT
Description of problem:
Yum-tmp repo crashes with any URL.

Version-Release number of selected component (if applicable):
yum-3.2.8-2.fc8.noarch
yum-tmprepo-1.1.11-1.fc8.noarch

How reproducible:
Just run yum with tmprepo.

Steps to Reproduce:
1. yum --tmprepo=http://dl.atrpms.net/f8-x86_64/atrpms/stable list yum
  
Actual results:
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 105, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 287, in doCommands
    self._getTs()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in _getTs
    self._getTsInfo()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 91, in 
_getTsInfo
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 529, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 384, in 
_getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 214, in 
populateSack
    self.doSetup()
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 46, in doSetup
    self.ayum.plugins.run('prereposetup')
  File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/tmprepo.py", line 103, in prereposetup_hook
    make_validate(log, my_gpgcheck))
  File "/usr/lib/yum-plugins/tmprepo.py", line 70, in add_repos
    base.getReposFromConfigFile(fname, validate=tvalidate)
AttributeError: 'YumBaseCli' object has no attribute 'getReposFromConfigFile'

Expected results:
Use given repo.
Comment 1 Tim Lauridsen 2008-05-30 08:19:42 EDT
--tmprepo must point to a .repo to make it work, not an baseurl of an repo

yum --tmprepo=http://example.com/foo/bar.repo

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