mirror of
https://github.com/BioArchLinux/Rosa.git
synced 2025-03-10 12:02:43 +00:00
fix package info page dependencies link mistake
This commit is contained in:
parent
4bfe16dafc
commit
0f7d700002
1 changed files with 10 additions and 12 deletions
|
@ -35,19 +35,17 @@ requestPackageInfo(route.params.packageName)
|
||||||
|
|
||||||
requestPackageList()
|
requestPackageList()
|
||||||
.then((list) => {
|
.then((list) => {
|
||||||
list.forEach((bioarchPackageName) => {
|
function mapPackageDistribution(pkg) {
|
||||||
function mapPackageDistribution(pkg) {
|
if (list.find(dep => dep === pkg)) {
|
||||||
if (bioarchPackageName === pkg) {
|
return { name: pkg, dist: 'bioarch' }
|
||||||
return { name: pkg, dist: 'bioarch' }
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return { name: pkg, dist: 'arch' }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
depends.value = o_depends.map(mapPackageDistribution)
|
else {
|
||||||
optdepends.value = o_optdepends.map(mapPackageDistribution)
|
return { name: pkg, dist: 'arch' }
|
||||||
makedepends.value = o_makedepends.map(mapPackageDistribution)
|
}
|
||||||
})
|
}
|
||||||
|
depends.value = o_depends.map(mapPackageDistribution)
|
||||||
|
optdepends.value = o_optdepends.map(mapPackageDistribution)
|
||||||
|
makedepends.value = o_makedepends.map(mapPackageDistribution)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue