aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-12-04 07:04:34 +0100
committerUlrich Müller <ulm@gentoo.org>2016-12-04 13:22:01 +0100
commiteb8e92c757d14ed3c1769d622a5588a5d47f3a3e (patch)
treeefb8b3091d96c362d42d5fff7252a525b6d41cba /libs
parentCheck return status of package manager calls in news module. (diff)
downloadeselect-eb8e92c757d14ed3c1769d622a5588a5d47f3a3e.tar.gz
eselect-eb8e92c757d14ed3c1769d622a5588a5d47f3a3e.tar.bz2
eselect-eb8e92c757d14ed3c1769d622a5588a5d47f3a3e.zip
Fix pkgcore support.
* libs/package-manager.bash.in (get_repositories) (get_repo_news_dir): Fix pinspect calls, bug 304011.
Diffstat (limited to 'libs')
-rw-r--r--libs/package-manager.bash.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/package-manager.bash.in b/libs/package-manager.bash.in
index b6d8218..aececfd 100644
--- a/libs/package-manager.bash.in
+++ b/libs/package-manager.bash.in
@@ -180,7 +180,7 @@ has_version() {
get_repositories() {
case $(package_manager) in
portage) portageq get_repos "${EROOT:-/}" ;;
- pkgcore) pinspect portageq get_repositories ;;
+ pkgcore) pinspect portageq get_repos "${ROOT:-/}" ;;
paludis) run_paludis print-repositories ;;
esac
}
@@ -193,7 +193,7 @@ get_repo_news_dir() {
case $(package_manager) in
portage) echo "$(portageq get_repo_path \
"${EROOT:-/}" "${repo}")/metadata/news" ;;
- pkgcore) pinspect portageq get_repo_news_path "${repo}" ;;
+ pkgcore) pinspect portageq get_repo_news_path "${ROOT:-/}" "${repo}" ;;
paludis) run_paludis print-repository-metadata ${repo} \
--raw-name newsdir --format '%v\n' ;;
esac