Bug 1402044 - unable to download from local file repo (have fix)
Summary: unable to download from local file repo (have fix)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: yum-axelget
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Andrea Veri
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 15:59 UTC by Nick McCollum
Modified: 2019-05-19 06:55 UTC (History)
2 users (show)

Fixed In Version: yum-axelget-1.0.5.1-2.20140522gitad6fb3e.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-19 06:55:27 UTC
Type: Bug


Attachments (Terms of Use)

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.


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