[java-sig-commits] [javapackages] Strip gid, aid and version to prevent problems
Stanislav Ochotnicky
sochotni at fedoraproject.org
Thu Sep 15 12:28:06 UTC 2011
commit e4757cb627c78a683f6ccb5a430585a004d0a252
Author: Stanislav Ochotnicky <sochotnicky at 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
More information about the java-sig-commits
mailing list