summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-04-13 16:19:04 +0000
committerSimon Stelling <blubb@gentoo.org>2006-04-13 16:19:04 +0000
commitff2c2ee70b8a8d71f4e1ff1d4a8eb4104f99c117 (patch)
tree6879c6a2cd7b0af4c6473540d9cef8b165255b1b /bin/etc-update
parent14724ade6e80459cda3434f5f2e64fb22a9095fd (diff)
downloadportage-ff2c2ee70b8a8d71f4e1ff1d4a8eb4104f99c117.tar.gz
portage-ff2c2ee70b8a8d71f4e1ff1d4a8eb4104f99c117.tar.bz2
portage-ff2c2ee70b8a8d71f4e1ff1d4a8eb4104f99c117.zip
don't display the ._cfg???? files anymore but instead the number of updates for each file; bug 69845
svn path=/main/trunk/; revision=3138
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update12
1 files changed, 2 insertions, 10 deletions
diff --git a/bin/etc-update b/bin/etc-update
index d2946c3a0..885d513a7 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -110,18 +110,10 @@ function sel_file() {
isfirst=${file}
fi
numshow=$(printf "%${numwidth}i${PAR} " ${file})
- spacer=${numshow//?/ }
+ numupdates=$(( $(wc -l <${TMP}/files/${file}) - 1 ))
echo -n "${numshow}"
if (( ${mode} == 0 )); then
- spacedit=0
- for word in $(<${TMP}/files/${file}); do
- if (( ${spacedit} == 1 )); then
- echo -n "${spacer}"
- else
- spacedit=1
- fi
- echo ${word}
- done
+ echo "$(head -n1 ${TMP}/files/${file}) (${numupdates})"
else
head -n1 ${TMP}/files/${file}
fi