[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] 0.5.12 TypeError (with unnecessary signature chain?
From: |
Kenneth Loafman |
Subject: |
Re: [Duplicity-talk] 0.5.12 TypeError (with unnecessary signature chain?) |
Date: |
Sat, 21 Mar 2009 13:25:42 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
This was an error that cropped up with logging changes. The fix is
already in CVS, but a patch is attached.
...Ken
Dylan Alex Simon wrote:
> I'm getting this error when doing collection-status and other operations on a
> backup that works with 0.5.06 and 0.4.11 (haven't tried other intermediate
> versions):
>
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 743, in <module>
> with_tempdir(main)
> File "/usr/bin/duplicity", line 736, in with_tempdir
> fn()
> File "/usr/bin/duplicity", line 655, in main
> globals.archive_dir).set_values()
> File
> "/usr/local/duplicity-0.5.12/lib/python2.6/site-packages/duplicity/collections.py",
> line 557, in set_values
> self.warn(sig_chain_warning)
> File
> "/usr/local/duplicity-0.5.12/lib/python2.6/site-packages/duplicity/collections.py",
> line 626, in warn
> + "\n" + "\n".join(self.other_sig_names),
> TypeError: bad operand type for unary +: 'str'
>
> I didn't see any similar reports. I can provide the full -v9 messages if
> they'll be useful, but this seems to be related to the "unnecessary signature
> chains" messages I've been getting since a long-ago upgrade. There are two
> backups, which older versions find (though really both should have
> signatures):
>> Warning, found unnecessary signature chain(s)
>> Found 1 backup chains without signatures.
>> Found a complete backup chain with matching signature chain:
>
> :-Dylan
>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
Index: collections.py
===================================================================
RCS file: /sources/duplicity/duplicity/duplicity/collections.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- collections.py 8 Mar 2009 16:22:33 -0000 1.37
+++ collections.py 19 Mar 2009 20:12:45 -0000 1.38
@@ -622,8 +622,8 @@
"signature chain",
"Warning, found unnecessary "
"signature chains",
- len(self.other_sig_chains)),
- + "\n" + "\n".join(self.other_sig_names),
+ len(self.other_sig_chains))
+ + "\n" + "\n".join([f.fullsig for f in
self.other_sig_chains]),
log.WarningCode.unnecessary_sig)
else:
log.Warn(_("Warning, found signatures but no corresponding "
signature.asc
Description: OpenPGP digital signature