Bug 1368832 - AttributeError: 'Repo' object has no attribute 'metalink_path'
Summary: AttributeError: 'Repo' object has no attribute 'metalink_path'
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords: Triaged
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-21 17:59 UTC by Igor Gnatenko
Modified: 2016-10-04 18:05 UTC (History)
7 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2016-09-13 14:14:22 UTC


Attachments (Terms of Use)

Description Igor Gnatenko 2016-08-21 17:59:56 UTC
[root@4ac74e4b03f7 /]# dnf install python2-jinja2 --setopt=reposdir=/tmp/repos.d/ -y
Copr repo for behave-enhanced owned by ignatenkobrain                                                                                                                              5.9 kB/s | 5.3 kB     00:00    
Fedora 24 - x86_64 - Updates                                                                                                                                                       2.9 MB/s |  14 MB     00:04    
Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 170, in user_main
    errcode = main(args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 111, in _main
    cli.run()
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 946, in run
    self._process_demands()
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 788, in _process_demands
    load_available_repos=self.demands.available_repos)
  File "/usr/lib/python3.5/site-packages/dnf/base.py", line 252, in fill_sack
    self._add_repo_to_sack(r)
  File "/usr/lib/python3.5/site-packages/dnf/base.py", line 109, in _add_repo_to_sack
    repo.load()
  File "/usr/lib/python3.5/site-packages/dnf/repo.py", line 821, in load
    self._replace_metadata(handle)
  File "/usr/lib/python3.5/site-packages/dnf/repo.py", line 694, in _replace_metadata
    shutil.move(handle._metalink_path, self.metalink_path)
AttributeError: 'Repo' object has no attribute 'metalink_path'


dnf-2.0.0-0.354gdbc1870.fc24.noarch

Comment 2 Igor Gnatenko 2016-09-13 14:14:22 UTC
Merged in DNF 2.0.


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