diff options
Diffstat (limited to 'src/_portage_utils')
-rw-r--r-- | src/_portage_utils | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/_portage_utils b/src/_portage_utils index 7fdb828..cab73f9 100644 --- a/src/_portage_utils +++ b/src/_portage_utils @@ -2,9 +2,7 @@ # portage-utils-0.53 -local common_args PORTDIR - -PORTDIR="$(_gentoo_repos -m)" +local common_args common_args=( '--root[Set the ROOT env var]:root directory:_files -/' \ @@ -25,7 +23,7 @@ case $service in local -a arches allarches show_archs(){ - arches=(${(f)"$(<$PORTDIR/profiles/arch.list)"}) + arches=(${(f)"$(<$(_gentoo_repos -m)/profiles/arch.list)"}) for arch in $arches; do [[ $arch =~ '^[^#]' ]] && allarches+=( $arch ) done |