[Da-tools-commits] ./debian/userdir-ldap r487: Fix formatting of PGP fingerprints - the double space was always one element
Peter Palfrader
peter at palfrader.org
Tue Dec 2 22:43:51 UTC 2008
------------------------------------------------------------
revno: 487
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap
timestamp: Tue 2008-12-02 23:43:51 +0100
message:
Fix formatting of PGP fingerprints - the double space was always one element
too early.
modified:
debian/changelog
userdir_ldap.py
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-11-24 10:25:18 +0000
+++ b/debian/changelog 2008-12-02 22:43:51 +0000
@@ -3,8 +3,10 @@
* Properly show shadowlastchange and mail disabled message when
locking an account, but not disabling email. It was written to
ldap correctly, but we updated the data to display wrongly.
+ * Fix formatting of PGP fingerprints - the double space was always
+ one element too early.
- -- Peter Palfrader <weasel at debian.org> Mon, 24 Nov 2008 11:24:16 +0100
+ -- Peter Palfrader <weasel at debian.org> Tue, 02 Dec 2008 23:43:27 +0100
userdir-ldap (0.3.52) unstable; urgency=low
=== modified file 'userdir_ldap.py'
--- a/userdir_ldap.py 2008-11-23 20:23:20 +0000
+++ b/userdir_ldap.py 2008-12-02 22:43:51 +0000
@@ -321,7 +321,7 @@
if (len(Str) == 32):
I = 0;
while (I < len(Str)):
- if I+2 == 32/2:
+ if I == 32/2:
Res = "%s %s%s "%(Res,Str[I],Str[I+1]);
else:
Res = "%s%s%s "%(Res,Str[I],Str[I+1]);
@@ -330,7 +330,7 @@
# OpenPGP Print
I = 0;
while (I < len(Str)):
- if I+4 == 40/2:
+ if I == 40/2:
Res = "%s %s%s%s%s "%(Res,Str[I],Str[I+1],Str[I+2],Str[I+3]);
else:
Res = "%s%s%s%s%s "%(Res,Str[I],Str[I+1],Str[I+2],Str[I+3]);
More information about the Da-tools-commits
mailing list