[libvirt] [PATCH libvirt-python] Fix duplicate entries in AUTHORS

Jim Fehlig jfehlig at suse.com
Mon May 11 19:08:45 UTC 2015


The generated AUTHORS file contains many duplicates.  If an author
has N commits, there will be N entries for the author in AUTHORS.
Check if an author already exists in the list before appending.

Signed-off-by: Jim Fehlig <jfehlig at suse.com>
---
 setup.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 2571742..7a1964b 100755
--- a/setup.py
+++ b/setup.py
@@ -176,7 +176,9 @@ class my_sdist(sdist):
         f = os.popen("git log --pretty=format:'%aN <%aE>'")
         authors = []
         for line in f:
-            authors.append("   " + line.strip())
+            line = "   " + line.strip()
+            if line not in authors:
+                authors.append(line)
 
         authors.sort(key=str.lower)
 
-- 
2.3.7




More information about the libvir-list mailing list