You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$conan_home=&"$conan_exe" config home |Select-Object-First 1
82
-
if ($VerboseLogging) { Write-Error"conan config home: $(conan_home)" }
44
+
if ($matchingDirs.Count-gt1) {
45
+
Err "Multiple directories found in PATH matching the package '$Package' (prefix '$pkgValue'). Please specify a more precise package name."
83
46
}
84
-
$conan_db=Join-Path$conan_home"p\cache.sqlite3"
85
47
86
-
if (-not (Test-Path$conan_db)) {
87
-
Err "Conan database not found at $conan_db. Please execute this script from the root of the project: ./infomaniak-build-tools/conan/build_dependencies.ps1"
88
-
}
89
-
90
-
$sql_req="SELECT path FROM packages WHERE reference='$reference' ORDER BY timestamp DESC LIMIT 1;"
91
-
92
-
$subpath=& sqlite3 "$conan_db""$sql_req"2>$null
93
-
94
-
if (-not$subpath) {
95
-
Err "The reference '$reference' does not exists in the conan cache.."
96
-
}
48
+
$packageDir=$matchingDirs
49
+
Write-Output$packageDir
97
50
98
-
if (-not (Test-Path (Join-Path$conan_home"p\$subpath\p"))) {
99
-
Err "The path to the folder found, does not exists. : $(Join-Path$conan_home"p\$subpath\p")"
0 commit comments