Bug 136925

Summary: Yum's rebuilding contains "SyntaxError: invalid syntax" at "transactioninfo.py"
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-23 12:29:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Scheck 2004-10-23 09:41:54 UTC
Description of problem:
If I rebuild the latest yum:

--- snipp ---
Compiling /var/tmp/yum-root//usr/lib/python2.3/site-packages/yum/transactioninfo.py ...
  File "transactioninfo.py", line 36
    def add(self, pkgtup)
                         ^
SyntaxError: invalid syntax
--- snapp ---

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

How reproducible:
Everytime, see below.

Steps to Reproduce:
1. Try to rebuild yum-2.1.10-3 from Fedora Development
  
Actual results:
Error at rebuilding

Expected results:
No error at rebuilding

Additional info:
I'm suggesting the following fix for it:

--- snipp ---
--- yum-2.1.10/yum/transactioninfo.py       2004-09-08 07:26:03.000000000 +0200
+++ yum-2.1.10/yum/transactioninfo.py.rsc   2004-10-23 11:43:30.000000000 +0200
@@ -33,7 +33,7 @@

         return None

-    def add(self, pkgtup)
+    def add(self, pkgtup):
         """add a package to the transaction"""

     def remove(self, pkgtup):
--- snapp ---

Comment 1 Seth Vidal 2004-10-23 12:02:37 UTC
transactioninfo.py is not yet used by yum. It is a placeholder for
more functions in the future.

What command did you use to rebuild yum? I've never encountered that
error doing builds of yum.


Comment 2 Robert Scheck 2004-10-23 12:06:26 UTC
Well, I simply rebuilt the yum src.rpm package using --rebuild and 
that error message was in the part where the .pyc files are compiled 
out of the .py ones.

Comment 3 Seth Vidal 2004-10-23 12:29:49 UTC
Ah, so it's a non-fatal message. That may be why I never noticed it.

When that file is actually used in yum I'll make sure I get it fixed up.

Thanks