Bug 1402044

Summary: unable to download from local file repo (have fix)
Product: [Fedora] Fedora EPEL Reporter: Nick McCollum <nmccollum>
Component: yum-axelgetAssignee: Andrea Veri <andrea.veri>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: andrea.veri, nmccollum
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: yum-axelget-1.0.5.1-2.20140522gitad6fb3e.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-19 06:55:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nick McCollum 2016-12-06 15:59:34 UTC
Description of problem:

In the following error:

Total download size: 27 M
Installed size: 96 M
Is this ok [y/d/N]: y
Downloading packages:
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 365, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 271, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 671, in doTransaction
    problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb) 
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2422, in downloadPkgs
    self.plugins.run('predownload', pkglist=pkglist)
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/axelget.py", line 523, in predownload_hook
    conduct.info(2, "Skip local Site: %s" % url)
NameError: global name 'conduct' is not defined

This error seems to have persisted for 5+ years according to my google searches.


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


How reproducible:

Try to install a file from a local repo using the file:///path/to/rpm source.

	Create a local file repo with a few RPM packages. Use yum to install the packages from your local repo. Ensure that you are using file:///path/to/rpm/.

To fix the issue, change line 523 in /usr/lib/yum-plugins/axelget.py:

diff:
                  --- 
                  +++ 
                  @@ -517,10 +517,10 @@
                               mirrors[:0] = [preffermirror]
                           for url in mirrors:
                               if url.startswith("ftp://") and httpdownloadonly:
                  - conduct.info(2, "Skip Ftp Site: %s" % url)
                  + conduit.info(2, "Skip Ftp Site: %s" % url)
                                   continue
                               if url.startswith("file://"):
                  - conduct.info(2, "Skip local Site: %s" % url)
                  + conduit.info(2, "Skip local Site: %s" % url)
                                   continue
                   
                               curmirroridx += 1

Comment 1 Fedora Update System 2019-05-03 23:29:57 UTC
yum-axelget-1.0.5.1-2.20140522gitad6fb3e.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-dc98d144cc

Comment 2 Fedora Update System 2019-05-04 03:13:07 UTC
yum-axelget-1.0.5.1-2.20140522gitad6fb3e.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-dc98d144cc

Comment 3 Fedora Update System 2019-05-19 06:55:27 UTC
yum-axelget-1.0.5.1-2.20140522gitad6fb3e.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.