summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/portdupe')
-rwxr-xr-xscripts/portdupe3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/portdupe b/scripts/portdupe
index 697c3fc37..fd03f8438 100755
--- a/scripts/portdupe
+++ b/scripts/portdupe
@@ -3,8 +3,7 @@
# Copyright 2006 David Shakaryan <omp@gentoo.org>
# Distributed under the terms of the GNU General Public License v2
-# Change portage tree directory if you have it elsewhere.
-PORTDIR="/usr/portage"
+PORTDIR="$(portageq envvar PORTDIR)"
# If an argument is present, use it as the overlay directory.
if [ $1 ]; then