aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@trisquel.info>2015-06-26 09:50:14 -0500
committerRuben Rodriguez <ruben@trisquel.info>2015-06-26 10:07:02 -0500
commit2a2a0d49ecccabe971bb0a39e6206bb47cd17168 (patch)
tree5d2735dca1af450741dc08cbcb2f1fd5d28a1536
parente89d8f4c6f0f6193cca31b4399c39fc155735cac (diff)
Sanitize Upstream-Name header in load_copyright
Some dep5 files are malformed and incude the author's name and email on the Upstream-Name field
-rw-r--r--load_copyright.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/load_copyright.py b/load_copyright.py
index a5b1f5d..1ab361d 100644
--- a/load_copyright.py
+++ b/load_copyright.py
@@ -83,6 +83,8 @@ def import_one(pkgname, fh):
header['Upstream-Name'] = \
header['Upstream-Name'].replace(u'\xa0', ' ')
#copy_summary['Upstream-Name'].replace('\xc2\xa0', ' ')
+ if '@' in header['Upstream-Name']:
+ header['Upstream-Name'] = pkgname
copy_summary = pd.DataFrame([header])
#print copy_summary.T.to_string()