commit 23080d65407e29b450e4dc5f43c0d4e7af3a6812
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Thu Sep 15 14:23:01 2011 +0200
Strip gid,aid and version to prevent problems
Some pom.xml files use whitespaces inside these tags and these were
making our code barf when resolving. This simple patch strips
whitespace before producing dependency mapping fragment.
scripts/maven_depmap.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/scripts/maven_depmap.py b/scripts/maven_depmap.py
index c167c57..43ecc84 100644
--- a/scripts/maven_depmap.py
+++ b/scripts/maven_depmap.py
@@ -43,9 +43,9 @@ from os.path import basename, dirname
class Fragment:
"""simple structure to hold fragment information"""
def __init__(self, gid, aid, version, local_gid, local_aid):
- self.gid = gid
- self.aid = aid
- self.version = version
+ self.gid = gid.strip()
+ self.aid = aid.strip()
+ self.version = version.strip()
self.local_gid = local_gid
self.local_aid = local_aid
Show replies by date