+2007-03-14 Paul Varner <fuzzyray@gentoo.org>
+ * equery: Trim trailing slash from query for equery belongs command
+ (Bug #170981)
+
2007-03-13 Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Fix bug with --package-names option not rebuilding
packages (Bug #169761)
if opts["fullRegex"]:
q = query
else:
+ # Trim trailing slash from query
+ for i in range(0, len(query)):
+ if (query[i][-1] == "/"):
+ query[i] = query[i][:-1]
q = map(lambda x: ((len(x) and x[0] == "/") and "^" or "/")
+ re.escape(x) + "$", query)
try: