[java-sig-commits] [javapackages/0.2.x] Strip gid, aid and version to prevent problems

Stanislav Ochotnicky sochotni at fedoraproject.org
Thu Sep 15 12:28:18 UTC 2011


commit 23080d65407e29b450e4dc5f43c0d4e7af3a6812
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