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()
|
||||
.then((list) => {
|
||||
list.forEach((bioarchPackageName) => {
|
||||
function mapPackageDistribution(pkg) {
|
||||
if (bioarchPackageName === pkg) {
|
||||
return { name: pkg, dist: 'bioarch' }
|
||||
}
|
||||
else {
|
||||
return { name: pkg, dist: 'arch' }
|
||||
}
|
||||
function mapPackageDistribution(pkg) {
|
||||
if (list.find(dep => dep === pkg)) {
|
||||
return { name: pkg, dist: 'bioarch' }
|
||||
}
|
||||
depends.value = o_depends.map(mapPackageDistribution)
|
||||
optdepends.value = o_optdepends.map(mapPackageDistribution)
|
||||
makedepends.value = o_makedepends.map(mapPackageDistribution)
|
||||
})
|
||||
else {
|
||||
return { name: pkg, dist: 'arch' }
|
||||
}
|
||||
}
|
||||
depends.value = o_depends.map(mapPackageDistribution)
|
||||
optdepends.value = o_optdepends.map(mapPackageDistribution)
|
||||
makedepends.value = o_makedepends.map(mapPackageDistribution)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue