Bug 448902 - Yum-tmprepo doesn't work
Summary: Yum-tmprepo doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-29 12:58 UTC by Michał Bentkowski
Modified: 2008-05-30 12:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-30 12:19:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michał Bentkowski 2008-05-29 12:58:07 UTC
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 12:19:42 UTC
--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.