when the release to print is found, no need to continue the iteration

This commit is contained in:
Serdar Dalgıç
2009-12-16 09:29:16 +00:00
parent 51425333b5
commit d2760d4b27
+1
View File
@@ -58,6 +58,7 @@ Usage: blame <package> ... <package>
for hno, update in enumerate(pkg.history):
if int(update.release) == release:
self.print_package_info(pkg, hno)
return
def print_package_info(self, package, hno=0):
s = _('Name: %s, version: %s, release: %s\n') % (