Re: yum 3.2.12 list [anything] broken on CentOS 5...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 06, 2008 at 10:35:27AM -0500, seth vidal wrote:
> Found another case of this blowing up on rhel5 - not sure of the change,
> yet, but something is not happy here.


Kludgy fix:

--- sqlutils.py.orig	2008-03-06 10:44:42.000000000 -0500
+++ sqlutils.py	2008-03-06 10:50:20.000000000 -0500
@@ -118,6 +118,8 @@
 	output=[]
 	count=1
 	for token in tokens:
+		if not token:
+			continue
 		if token.endswith("?"):
 			output.append(token[:-1] + "%%(param%d)s" % count)
 			count+=1
@@ -130,7 +132,10 @@
 		dict["param%d" % count]=param
 		count+=1
 	
-	return (" ".join(output), dict)
+	if output==[]:
+		return (" ".join(output), dict)
+        else:
+		return (" ", dict)
 
 
 def executeSQLPyFormat(cursor, query, params=None):

-- 
Matthew Miller           mattdm@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux