summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-03-26 16:35:23 +0100
committerben <benjaminfranzke@googlemail.com>2010-03-26 16:35:23 +0100
commitc980b61930cb4b8c73cfb671aebca26122ba931f (patch)
treef7a45c7e7369b9e34539be0ce6834663f3d0c084 /.scripts
parentfd2bd31fa8bd8d141278b194e219c22f4ba48851 (diff)
downloaddotfiles-c980b61930cb4b8c73cfb671aebca26122ba931f.tar.gz
dotfiles-c980b61930cb4b8c73cfb671aebca26122ba931f.tar.bz2
dotfiles-c980b61930cb4b8c73cfb671aebca26122ba931f.zip
find_nonexistend.. replace $VARS with portageq`s
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/find_nonexistent_installed_packages.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/.scripts/find_nonexistent_installed_packages.sh b/.scripts/find_nonexistent_installed_packages.sh
index a7f857e..ecd2334 100755
--- a/.scripts/find_nonexistent_installed_packages.sh
+++ b/.scripts/find_nonexistent_installed_packages.sh
@@ -1,11 +1,12 @@
#!/bin/bash
+source /etc/make.conf
+installed=$(find "`portageq vdb_path`" -maxdepth 2 -mindepth 2 -printf "%P\n" | xargs qatom | awk '{print $1 "/" $2}')
-source "/etc/make.conf"
-installed=$(find /var/db/pkg -maxdepth 2 -mindepth 2 -printf "%P\n" | xargs qatom | awk '{print $1 "/" $2}')
+portdirs="$(portageq portdir) $(portageq portdir_overlay)"
for package in ${installed}
do
- for overlay in "/usr/portage/" ${PORTDIR_OVERLAY}
+ for overlay in ${portdirs}:
do
# as soon as we find a package => got to next package in outer loop
[[ -d "${overlay}/${package}" ]] && continue 2;