Bug 824777
Summary: | rhnpush fails with NameError: global name 'h' is not defined | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> |
Component: | Server | Assignee: | Jan Pazdziora (Red Hat) <jpazdziora> |
Status: | CLOSED ERRATA | QA Contact: | Dimitar Yordanov <dyordano> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 550 | CC: | dyordano, jpazdziora, mminar, mmraka |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rhnpush-5.5.42-3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 823491 | Environment: | |
Last Closed: | 2012-10-15 09:06:43 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: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 818987, 855837 |
Description
Jan Pazdziora (Red Hat)
2012-05-24 08:59:19 UTC
The issue is caused by 4ed2374ccbc7f7dedb8fe6eaf7322700f06a4ca7 when the h = get_header(None, f.fileno(), source) was replaced with a_pkg = package_from_filename(filename) I assume the proper fix is diff --git a/client/tools/rhnpush/uploadLib.py b/client/tools/rhnpush/uploadLib.py index 2d0ed35..aae1604 100644 --- a/client/tools/rhnpush/uploadLib.py +++ b/client/tools/rhnpush/uploadLib.py @@ -503,7 +503,7 @@ class UploadClass: if source: lh.append('src') else: - lh.append(h['arch']) + lh.append(a_pkg.header['arch']) # Build the header hash to be sent hash = { 'header' : Binary(a_pkg.header.unload()), Fixed in Spacewalk master, 03a1c48d59401856b2ffb4b2a96c4d51375b2cf4. Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-1368.html |