feat(debian): ajout d'info de debug sur la recherche de version de paquets

This commit is contained in:
wpetit 2022-06-16 16:41:29 +02:00
parent 83688cc56c
commit cf66210f4e
1 changed files with 9 additions and 2 deletions

View File

@ -26,9 +26,11 @@ def waitForRepoPackage(String packageName, Map params = [:]) {
println("Package found !")
break
}
def versionFound = packages.find {
return it['version'] =~ expectedVersion
def matches = it['version'] =~ expectedVersion
println("Comparing expected version '${expectedVersion}' to '${it['version']}': ${matches}")
return matches
}
if (versionFound) {
@ -76,5 +78,10 @@ def listRepoPackages(Map params = [:]) {
}
}
println "Found packages:"
packages.each{
println " - Package: ${it.key}, Version: ${it.value['version']}"
}
return packages
}