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

Bug#100641: fix



Howdy,

There is already code in search_packages{,2}.pl to handle
converting spaces into pluses to work around the rewrite rules.
The variable with the corrected keywords is never used, however.
The following patch should fix this.

Matt

--- search_packages.pl.orig	Mon Jul  2 10:17:06 2001
+++ search_packages.pl	Mon Jul  2 10:18:07 2001
@@ -64,12 +64,11 @@
 	sys.exit()
 	#keywords = raw_input('keywords = ')
 	#keywords = 'packages'
-keywords = data["keywords"].value
 
 p = re.compile("search_packages2")
 if p.search(sys.argv[0]):
 	p = re.compile(' ')
-	keywords = p.sub('+', keywords)
+	data["keywords"].value = p.sub('+', data["keywords"].value)
 
 def hexrepl(match):
 	"Return a '%' followed by the hex string for a decimal number"



Reply to: