diff options
author | 2007-03-10 11:13:07 +0000 | |
---|---|---|
committer | 2007-03-10 11:13:07 +0000 | |
commit | 078fcf53f8a99c4d5239f0240bbd1f392895c9f6 (patch) | |
tree | 8b02c43225bd486bedb836d9d87c0440f8c901f9 /app-portage | |
parent | Add ~amd64 keyword (diff) | |
download | drizzt-078fcf53f8a99c4d5239f0240bbd1f392895c9f6.tar.gz drizzt-078fcf53f8a99c4d5239f0240bbd1f392895c9f6.tar.bz2 drizzt-078fcf53f8a99c4d5239f0240bbd1f392895c9f6.zip |
Spring Clean
svn path=/; revision=112
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/drizzt-scripts/files/gen_metadata | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app-portage/drizzt-scripts/files/gen_metadata b/app-portage/drizzt-scripts/files/gen_metadata index 3f1af39..57ea140 100644 --- a/app-portage/drizzt-scripts/files/gen_metadata +++ b/app-portage/drizzt-scripts/files/gen_metadata @@ -27,7 +27,11 @@ function extract_metadata() { } portdir=$(portageq portdir) +rm -rf "${portdir}/metadata/cache/" while read i; do - extract_metadata $i > ${portdir}/metadata/cache/${i#/var/cache/edb/dep${portdir}} + FILE="${portdir}/metadata/cache/${i#/var/cache/edb/dep${portdir}}" + DIR=${FILE%/*} + [[ -d "${DIR}" ]] || mkdir -p "${DIR}" + extract_metadata "${i}" > "${FILE}" done < <(find /var/cache/edb/dep"${portdir}" -type f) |