summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xreport-installed-packages.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/report-installed-packages.in b/report-installed-packages.in
index db80ea1..c8267de 100755
--- a/report-installed-packages.in
+++ b/report-installed-packages.in
@@ -27,6 +27,13 @@ content=$(
uniq -d
)
+content=$(
+ ls '/var/cache/pacman/pkg' | \
+ sed 's|^\(.*\)-|\1 \0|' | \
+ sort -k1,1 | \
+ join -1 1 -2 1 -o 1.2 - <(echo "${content}")
+)
+
if [ -z "${to}" ] || [ -z "${from}" ]; then
echo "${content}"
elif [ -n "${content}" ]; then