reinstall_pkgs.append(_pkgs[0])
#t.add("reinstall", _pkgs[0])
else:
- log.warning(_("Multiple reinstall candidates for \"%s\": %s") \
- % (pattern, ", ".join(p.friendly_name for p in sorted(_pkgs))))
+ log.warning(_("Multiple reinstall candidates for \"%(pattern)s\": %(pkgs)s") \
+ % { "pattern" : pattern, "pkgs" : ", ".join(p.friendly_name for p in sorted(_pkgs)) })
if not reinstall_pkgs:
log.info(_("Nothing to do"))
if timeout > 60:
timeout = 60
- log.warning(_("Trying again in %s seconds. %s tries left.") % (timeout, tries))
+ log.warning(_("Trying again in %(timeout)s second(s). %(tries)s tries left.") \
+ % { "timeout" : timeout, "tries" : tries })
time.sleep(timeout)
else:
continue
# Let the user know what has been done.
- log.info(_("Filter '%s' filtered %s.") % (filter.pattern, dep))
+ log.info(_("Filter '%(pattern)s' filtered %(dep)s.") % \
+ { "pattern" : filter.pattern, "dep" : dep })
# Yes, we found a match.
filtered = True
if self.format > DATABASE_FORMAT:
raise DatabaseError, _("Cannot use database with version greater than %s.") % DATABASE_FORMAT
- log.info(_("Migrating database from format %s to %s.") % (self.format, DATABASE_FORMAT))
+ log.info(_("Migrating database from format %(old)s to %(new)s.") % \
+ { "old" : self.format, "new" : DATABASE_FORMAT })
# Get a database cursor.
c = self.cursor()