diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-12-28 15:50:53 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-12-28 15:50:53 +0000 |
commit | d0fba16d182a502f4701bea383c281d289c83fe4 (patch) | |
tree | 974601ad84839dd355fbf7c61faf70506ad284ca | |
parent | README.ripped-headers: add self link to make repository more discoverable (diff) | |
download | linux-headers-patches-d0fba16d182a502f4701bea383c281d289c83fe4.tar.gz linux-headers-patches-d0fba16d182a502f4701bea383c281d289c83fe4.tar.bz2 linux-headers-patches-d0fba16d182a502f4701bea383c281d289c83fe4.zip |
rip-headers.sh: try DISTDIR from portage before falling back to /usr/portage
-rwxr-xr-x | rip-headers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rip-headers.sh b/rip-headers.sh index 74577d5..0558ec3 100755 --- a/rip-headers.sh +++ b/rip-headers.sh @@ -9,7 +9,7 @@ src=linux-${ver} dst=gentoo-headers-base-${ver} if [ ! -d ${src} ] ; then - for srcdir in . /usr/portage/distfiles ; do + for srcdir in . "$(portageq distdir)" /usr/portage/distfiles ; do for ext in bz2 xz ; do srctar=${srcdir}/${src}.tar.${ext} if [ -e ${srctar} ] ; then |