Fixed pear bug
@@ -68,6 +68,7 @@ class PearDependencyFinder {
def nameList = []
String[] content = list.split('\n')
+ if(content.size() > 5) {
def listing = content[5..-1]
listing.each { line ->
String[] dependencyInfo = line.trim().split(' ')
@@ -86,6 +87,7 @@ class PearDependencyFinder {
}
}
}
+ }
nameList
}
@@ -94,6 +96,7 @@ class PearDependencyFinder {
Set<DependencyNode> childrenNodes = []
String[] dependencyList = list.split('\n')
+ if(dependencyList.size() > 3) {
def listing = dependencyList[3..-1]
listing.each { line ->
String[] dependencyInfo = line.trim().split(' ')
@@ -108,6 +111,7 @@ class PearDependencyFinder {
childrenNodes.add(newNode)
}
}
+ }
childrenNodes
}
