Bug 847505 - NameError: global name 'pacakge' is not defined
Summary: NameError: global name 'pacakge' is not defined
Keywords:
Status: CLOSED DUPLICATE of bug 848811
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-12 11:50 UTC by Sandro Mani
Modified: 2014-01-21 23:23 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-17 11:09:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sandro Mani 2012-08-12 11:50:39 UTC
Steps:
sudo mock -r fedora-rawhide-x86_64 -v --init
[...]
Transaction Summary
================================================================================
Install  24 Packages (+132 Dependent packages)

Total download size: 108 M
Installed size: 414 M
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 319, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 227, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 559, in doTransaction
    problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb) 
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2306, in downloadPkgs
    **kwargs
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 946, in getPackage
    msg = msg % (package, pacakge.repo.id)
NameError: global name 'pacakge' is not defined

Versions:
yum-3.4.3-31.fc19.noarch
mock-1.1.26-2.fc19.noarch

Additional info:
Issue appeared with yum-3.4.3-31.fc19.noarch, worked fine before.

Comment 1 kevin martin 2012-08-16 21:59:17 UTC
fwiw, manually modifying yumRepo.py to say package instead of pacakge allows yum to run.  Once the packager of yum gets this fixed you make need to make that manual change first before being able to yum update yum.

Comment 2 Frank Murphy 2012-08-17 10:28:51 UTC
Duplicate of: 
https://bugzilla.redhat.com/show_bug.cgi?id=848811
Which appears fixed with:
http://koji.fedoraproject.org/koji/buildinfo?buildID=348690

Comment 3 Jan Zeleny 2012-08-17 11:09:37 UTC

*** This bug has been marked as a duplicate of bug 848811 ***


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