~ed.so/duplicity/reuse-passphrase-for-signing-fix

« back to all changes in this revision

Viewing changes to duplicity/lazy.py

  • Committer: loafman
  • Date: 2008-12-22 17:22:44 UTC
  • Revision ID: vcs-imports@canonical.com-20081222172244-cjurdc0mt5d41n6d
patch #6700: Make duplicity translatable
https://savannah.nongnu.org/patch/?6700

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
            return 1
287
287
 
288
288
        if index <= self.index:
289
 
            log.Log("Warning: oldindex %s >= newindex %s" %
 
289
            log.Log(_("Warning: oldindex %s >= newindex %s") %
290
290
                    (self.index, index), 2)
291
291
            return 1
292
292
 
360
360
            filename = os.path.join(*args[0])
361
361
        elif self.index: filename = os.path.join(*self.index)
362
362
        else: filename = "."
363
 
        log.Log("Error '%s' processing %s" % (exc, filename), 2)
 
363
        log.Log(_("Error '%s' processing %s") % (exc, filename), 2)
364
364
 
365
365
    def log_prev_error(self, index):
366
366
        """Call function if no pending exception"""
367
367
        if not index: index_str = "."
368
368
        else: index_str = os.path.join(*index)
369
 
        log.Log("Skipping %s because of previous error" % index_str, 2)
 
369
        log.Log(_("Skipping %s because of previous error") % index_str, 2)
370
370
 
371
371
 
372
372
import duplicity.log as log